/**
 * BMCPC Print Alpha136 — restore the source news-page heading.
 *
 * The news-post source header contains the page heading `最新消息` and the
 * current-post title/date in separate Elementor rows. The shared print rule
 * intentionally removes the site chrome, but its generic header rule also
 * hides these source rows. Restore only the existing heading widget here;
 * the text continues to come from the page DOM and is never duplicated.
 */

@media print {
  body.bmcpc-print-active.bmcpc-print-profile-standard:is(.single-cemeteries, .single-events)
    header[data-elementor-type="header"]
    > [data-id="324d3f08"]:has(h1.elementor-heading-title) {
    display: block !important;
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 4mm !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
    background: transparent !important;
    box-shadow: none !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.bmcpc-print-active.bmcpc-print-profile-standard:is(.single-cemeteries, .single-events)
    header[data-elementor-type="header"]
    > [data-id="324d3f08"]:has(h1.elementor-heading-title)
    > [data-id="25bf3595"]:has(h1.elementor-heading-title) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    background: transparent !important;
  }

  body.bmcpc-print-active.bmcpc-print-profile-standard:is(.single-cemeteries, .single-events)
    header[data-elementor-type="header"]
    > [data-id="324d3f08"]:has(h1.elementor-heading-title)
    h1.elementor-heading-title {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: var(--bmcpc-print-brand, #27665d) !important;
    font-family: "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", Arial, sans-serif !important;
    font-size: 16pt !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-shadow: none !important;
    transform: none !important;
    -webkit-text-fill-color: var(--bmcpc-print-brand, #27665d) !important;
  }
}
