/* These rules act only on the two requested active print panels. Screen
 * layout, content, other tabs and the shared header remain untouched. */
@media print {
  body.page-id-1566.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] > .e-con-inner {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding-block: 0 !important;
  }

  body.page-id-1566.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-176245c {
    padding: 0 !important;
    margin-bottom: 3mm !important;
  }

  body.page-id-1566.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-3385905 {
    padding: 0 !important;
    gap: 3mm !important;
    grid-auto-rows: auto !important;
    align-items: start !important;
  }

  body.page-id-1566.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-b0a1b55 {
    padding: 0 !important;
    gap: 2mm !important;
    height: auto !important;
    min-height: 0 !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.page-id-1566.bmcpc-print-active:has(#tab2[data-bmcpc-print-tab-state="active"]) footer.elementor-location-footer {
    margin-top: 4mm !important;
  }

  /* A flex column cannot fragment its child widgets as naturally as normal
   * block flow. Preserve the existing spacing without moving whole widgets
   * unnecessarily to a new page. The visual table keeps its own grid. */
  body.page-id-2565.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-4ba36c69 {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    break-inside: auto !important;
  }

  body.page-id-2565.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-4ba36c69 > :not(:last-child) {
    margin-bottom: 4mm !important;
  }

  /* The generated video cards need a readable full-width copy column. Keeping
   * their source's three-column grid squeezes URLs to one character per line,
   * making each unbreakable card nearly a page tall. */
  body.page-id-2565.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-46ae8c43 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
  }

  body.page-id-2565.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-46ae8c43 > .bmcpc-print-video-card {
    min-width: 0 !important;
    height: auto !important;
  }

  body.page-id-2565.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-20388e92 .e-n-accordion,
  body.page-id-2565.bmcpc-print-active #tab2[data-bmcpc-print-tab-state="active"] .elementor-element-20388e92 details {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    break-inside: auto !important;
  }
}
