/**
 * Alpha128: Page 1580 / serenity_garden_gos_note / #tab1–#tab6.
 *
 * Match the proven print header rhythm used by Page 1582
 * (serenity_garden_gos_details): keep the large two-line hero title and its
 * normal 20px widget gap, then flow the page title below the hero. The source
 * text and the selected-tab print snapshot are untouched.
 */

@media print {

  /* The shared Page 1580 compact-hero reset has a stronger selector than the
   * earlier add-on and zeroes the hero padding. Match its full first-child
   * path so the details-page rhythm can win deterministically. */
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  main.site-main > .page-content > [data-elementor-type="wp-page"]
  > .e-con.e-parent:first-child,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  main.site-main > .page-content > [data-elementor-type="wp-page"]
  > .e-con.e-parent:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: -64px 0 0 !important;
    padding: 120px 12px 0 !important;
    box-sizing: border-box !important;
    gap: 20px !important;
    row-gap: 20px !important;
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
    background: transparent !important;
    background-image: none !important;
  }

  /* The details-page header uses the original Elementor widget rhythm:
   * h1 has a 3% top / 2% side margin and h2 follows after the 20px gap. */
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-1b4e133c,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-1b4e133c {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 3% 2% 0 !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
  }

  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-2151bd94,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-2151bd94 {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    transform: none !important;
  }

  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-4da549bc
  > :is(.elementor-element-1b4e133c, .elementor-element-2151bd94)
  :is(h1, h2, .elementor-heading-title),
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-4da549bc
  > :is(.elementor-element-1b4e133c, .elementor-element-2151bd94)
  :is(h1, h2, .elementor-heading-title) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-shadow: none !important;
    transform: none !important;
  }

  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-1b4e133c .elementor-heading-title,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-1b4e133c .elementor-heading-title {
    font-size: 48px !important;
    font-weight: 600 !important;
  }

  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-2151bd94 .elementor-heading-title,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-4da549bc
  > .elementor-element-2151bd94 .elementor-heading-title {
    font-size: 38px !important;
    font-weight: 600 !important;
  }

  /* The following two containers are screen-only decoration. Details uses
   * display:none in print; keeping them hidden prevents the -120px overlap. */
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-5be9c50,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-5be9c50,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-1f856e48,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-1f856e48 {
    display: none !important;
  }

  /* Keep the note page title-line in the same position and style as the
   * details page title-line. */
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-2d9f881a,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-2d9f881a {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-2d9f881a
  > .elementor-element-16c6312f,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-2d9f881a
  > .elementor-element-16c6312f {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 0 3% !important;
    transform: none !important;
    overflow: visible !important;
  }

  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  [data-bmcpc-print-snapshot-root="1"]
  .elementor-1580 > .elementor-element-2d9f881a
  > .elementor-element-16c6312f .elementor-heading-title,
  html body.page-id-1580.bmcpc-print-active.bmcpc-print-compact-hero.bmcpc-print-gallery-block-flow
  .elementor-1580 > .elementor-element-2d9f881a
  > .elementor-element-16c6312f .elementor-heading-title {
    margin: 0 !important;
    font-size: 20pt !important;
    line-height: 1 !important;
  }
}
