/* =========================================================
   HFDXARC LATE FULL-WIDTH OVERRIDES v1.1.18
   Printed in the footer so it wins over shortcode/plugin CSS
   that loads late. Keeps normal WordPress sidebar pages intact.
   ========================================================= */

:root {
  --hfdx-site-max: 3600px !important;
  --hfdx-unified-max: 3600px !important;
  --hfdx-theme-page-max: 3600px !important;
  --hfdx-template-gutter: clamp(6px, 1.1vw, 30px) !important;
  --hfdx-plugin-inner-pad: clamp(12px, 1.2vw, 34px) !important;
}

body.hfdxarc-plugin-content-page,
body.hfdxarc-template-fullwidth,
body.page-template-hfdxarc-template-fullwidth,
body.page-template-hfdxarc-template-fullwidth-php,
body:has(:is(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdx-contact-wrap,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdx-history-page,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdxarc-onair-shell,
  .hfdxarc-sm-profile,
  .hfdxarc-sm-profile-shell,
  .hfdx-live-app,
  .hfdx-live-fullbleed,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdx-mesh-wrap,
  .hfdxarc-technical-pages-scope,
  .hfdxarc-tech-page,
  .hfdx-top-committee-page,
  .hfdxarc-tuner-page,
  .hfdxarc-cmc-page,
  .hfdxarc-wire-gauge-page,
  .hfdxarc-wire-gauge-wrap
)) {
  --hfdx-unified-max: 3600px !important;
  --hfdx-theme-page-max: 3600px !important;
  --hfdxarc-about-page-max-width: min(3600px, calc(100vw - (var(--hfdx-template-gutter) * 2))) !important;
}

/* Match the content shell to the menu/header width on HFDXARC full-width/plugin pages. */
body.hfdxarc-plugin-content-page #wrap.container,
body.hfdxarc-template-fullwidth #wrap.container,
body.page-template-hfdxarc-template-fullwidth #wrap.container,
body.page-template-hfdxarc-template-fullwidth-php #wrap.container,
body #wrap.container.template-fullwidth,
body #wrap.container.hfdxarc-template-fullwidth-wrap,
body:has(:is(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdx-contact-wrap,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdx-history-page,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdxarc-onair-shell,
  .hfdxarc-sm-profile,
  .hfdxarc-sm-profile-shell,
  .hfdx-live-app,
  .hfdx-live-fullbleed,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdx-mesh-wrap,
  .hfdxarc-technical-pages-scope,
  .hfdxarc-tech-page,
  .hfdx-top-committee-page,
  .hfdxarc-tuner-page,
  .hfdxarc-cmc-page,
  .hfdxarc-wire-gauge-page,
  .hfdxarc-wire-gauge-wrap
)) #wrap.container {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: min(calc(100vw - (var(--hfdx-template-gutter) * 2)), var(--hfdx-site-max)) !important;
  max-width: var(--hfdx-site-max) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Stop the parent theme article/page layers forming a smaller inner window. */
body.hfdxarc-plugin-content-page #content,
body.hfdxarc-plugin-content-page #primary,
body.hfdxarc-plugin-content-page .site-main,
body.hfdxarc-plugin-content-page article,
body.hfdxarc-plugin-content-page .type-page,
body.hfdxarc-plugin-content-page .hentry,
body.hfdxarc-plugin-content-page .page,
body.hfdxarc-plugin-content-page .entry,
body.hfdxarc-plugin-content-page .entry-content,
body.hfdxarc-template-fullwidth #content,
body.hfdxarc-template-fullwidth #primary,
body.hfdxarc-template-fullwidth .site-main,
body.hfdxarc-template-fullwidth article,
body.hfdxarc-template-fullwidth .type-page,
body.hfdxarc-template-fullwidth .hentry,
body.hfdxarc-template-fullwidth .page,
body.hfdxarc-template-fullwidth .entry,
body.hfdxarc-template-fullwidth .entry-content,
body #wrap.container.template-fullwidth #content,
body #wrap.container.template-fullwidth #primary,
body #wrap.container.template-fullwidth .site-main,
body #wrap.container.template-fullwidth article,
body #wrap.container.template-fullwidth .type-page,
body #wrap.container.template-fullwidth .hentry,
body #wrap.container.template-fullwidth .page,
body #wrap.container.template-fullwidth .entry,
body #wrap.container.template-fullwidth .entry-content,
body #wrap.container.hfdxarc-template-fullwidth-wrap #content,
body #wrap.container.hfdxarc-template-fullwidth-wrap #primary,
body #wrap.container.hfdxarc-template-fullwidth-wrap .site-main,
body #wrap.container.hfdxarc-template-fullwidth-wrap article,
body #wrap.container.hfdxarc-template-fullwidth-wrap .type-page,
body #wrap.container.hfdxarc-template-fullwidth-wrap .hentry,
body #wrap.container.hfdxarc-template-fullwidth-wrap .page,
body #wrap.container.hfdxarc-template-fullwidth-wrap .entry,
body #wrap.container.hfdxarc-template-fullwidth-wrap .entry-content,
body:has(:is(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdx-contact-wrap,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdx-history-page,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdxarc-onair-shell,
  .hfdxarc-sm-profile,
  .hfdxarc-sm-profile-shell,
  .hfdx-live-app,
  .hfdx-live-fullbleed,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdx-mesh-wrap,
  .hfdxarc-technical-pages-scope,
  .hfdxarc-tech-page,
  .hfdx-top-committee-page,
  .hfdxarc-tuner-page,
  .hfdxarc-cmc-page,
  .hfdxarc-wire-gauge-page,
  .hfdxarc-wire-gauge-wrap
)) :where(#content,#primary,.site-main,article,.type-page,.hentry,.page,.entry,.entry-content) {
  display: block !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* HFDXARC plugin root wrappers: remove old 1180/1320/1560px caps and old centering hacks. */
body :where(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdx-contact-wrap,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdx-history-page,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdxarc-onair-shell,
  .hfdxarc-sm-profile,
  .hfdxarc-sm-profile-shell,
  .hfdx-live-app,
  .hfdx-live-fullbleed,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdx-mesh-wrap,
  .hfdxarc-technical-pages-scope,
  .hfdxarc-tech-page,
  .hfdx-top-committee-page,
  .hfdxarc-tuner-page,
  .hfdxarc-cmc-page,
  .hfdxarc-wire-gauge-page,
  .hfdxarc-wire-gauge-wrap
) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

/* Bootstrap/theme inner containers inside shortcode pages must also go full-width. */
body :where(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdx-contact-wrap,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdx-history-page,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdxarc-onair-shell,
  .hfdxarc-sm-profile,
  .hfdxarc-sm-profile-shell,
  .hfdx-live-app,
  .hfdx-live-fullbleed,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdx-mesh-wrap,
  .hfdxarc-technical-pages-scope,
  .hfdxarc-tech-page,
  .hfdx-top-committee-page,
  .hfdxarc-tuner-page,
  .hfdxarc-cmc-page,
  .hfdxarc-wire-gauge-page,
  .hfdxarc-wire-gauge-wrap
) :where(
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl,
  .hfdx-container,
  .hfdxarc-container,
  .hfdx-inner,
  .hfdxarc-inner,
  .hfdx-shell,
  .hfdxarc-shell,
  .hfdx-page-inner,
  .hfdxarc-page-inner,
  .hfdx-content,
  .hfdxarc-content,
  .hfdx-content-wrap,
  .hfdxarc-content-wrap,
  .hfdx-live-fullbleed
) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--hfdx-plugin-inner-pad) !important;
  padding-right: var(--hfdx-plugin-inner-pad) !important;
  box-sizing: border-box !important;
}

/* Let HFDXARC grids expand into the wider page window. */
body :where(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdx-live-app,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdxarc-technical-pages-scope,
  .hfdx-top-committee-page
) :where(
  .row,
  .hfdxarc-grid,
  .hfdxarc-card-grid,
  .hfdx-grid,
  .hfdx-events-grid,
  .hfdx-history-grid,
  .hfdxarc-tech-grid,
  .hfdxarc-members-grid,
  .hfdxarc-dash-grid,
  .hfdx-live-grid,
  .hfdx-mesh-grid
) {
  max-width: 100% !important;
}

/* Full-width plugin pages should not show a sidebar; normal pages keep sidebars. */
body.hfdxarc-plugin-content-page #sidebar,
body.hfdxarc-template-fullwidth #sidebar,
body.page-template-hfdxarc-template-fullwidth #sidebar,
body.page-template-hfdxarc-template-fullwidth-php #sidebar,
body:has(:is(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdx-contact-wrap,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdx-history-page,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdxarc-onair-shell,
  .hfdxarc-sm-profile,
  .hfdxarc-sm-profile-shell,
  .hfdx-live-app,
  .hfdx-live-fullbleed,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdx-mesh-wrap,
  .hfdxarc-technical-pages-scope,
  .hfdxarc-tech-page,
  .hfdx-top-committee-page,
  .hfdxarc-tuner-page,
  .hfdxarc-cmc-page,
  .hfdxarc-wire-gauge-page,
  .hfdxarc-wire-gauge-wrap
)) #sidebar,
body.hfdxarc-plugin-content-page #secondary,
body.hfdxarc-template-fullwidth #secondary,
body:has(:is(
  .hfdxarc-agm-2011,
  .hfdxarc-about,
  .hfdxarc-about-wrap,
  .hfdxarc-mission-wrap,
  .hfdxarc-contact,
  .hfdxarc-contact-page,
  .hfdx-contact-page,
  .hfdx-contact-wrap,
  .hfdxarc-common-mode-page,
  .hfdxarc-polarisation-page,
  .hfdx-at-page,
  .hfdx-gw-page,
  .hfdx-ionosphere-page,
  .hfdx-emc-page,
  .hfdx-events-calendar,
  .hfdx-events-shell,
  .gbmmh-report,
  .hfdx-sign-page,
  .hfdx-wire-page,
  .hfdx-wire-wrap,
  .hfdx-radials-page,
  .hfdx-history-wrap,
  .hfdx-history-page,
  .hfdxarc-email-list,
  .hfdxarc-members-area,
  .hfdxarc-onair,
  .hfdxarc-onair-shell,
  .hfdxarc-sm-profile,
  .hfdxarc-sm-profile-shell,
  .hfdx-live-app,
  .hfdx-live-fullbleed,
  .hfdxarc-meet-members-wrap,
  .hfdxarc-space-dashboard,
  .hfdx-mesh-page,
  .hfdx-mesh-wrap,
  .hfdxarc-technical-pages-scope,
  .hfdxarc-tech-page,
  .hfdx-top-committee-page,
  .hfdxarc-tuner-page,
  .hfdxarc-cmc-page,
  .hfdxarc-wire-gauge-page,
  .hfdxarc-wire-gauge-wrap
)) #secondary {
  display: none !important;
}

@media (max-width: 760px) {
  :root {
    --hfdx-template-gutter: 4px !important;
    --hfdx-plugin-inner-pad: 10px !important;
  }

  body.hfdxarc-plugin-content-page #wrap.container,
  body.hfdxarc-template-fullwidth #wrap.container,
  body.page-template-hfdxarc-template-fullwidth #wrap.container,
  body.page-template-hfdxarc-template-fullwidth-php #wrap.container,
  body #wrap.container.template-fullwidth,
  body #wrap.container.hfdxarc-template-fullwidth-wrap,
  body:has(:is(
    .hfdxarc-about,
    .hfdxarc-about-wrap,
    .hfdxarc-mission-wrap,
    .hfdxarc-contact-page,
    .hfdxarc-common-mode-page,
    .hfdxarc-polarisation-page,
    .hfdx-at-page,
    .hfdx-gw-page,
    .hfdx-ionosphere-page,
    .hfdx-emc-page,
    .hfdx-events-calendar,
    .hfdx-sign-page,
    .hfdx-wire-page,
    .hfdx-radials-page,
    .hfdx-history-wrap,
    .hfdxarc-email-list,
    .hfdxarc-members-area,
    .hfdxarc-onair,
    .hfdx-live-app,
    .hfdxarc-meet-members-wrap,
    .hfdxarc-space-dashboard,
    .hfdx-mesh-page,
    .hfdxarc-technical-pages-scope,
    .hfdx-top-committee-page
  )) #wrap.container {
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
  }
}
