/**
 * BMCPC Print Alpha134 — restore the source news-post title row.
 *
 * The current Elementor header contains both the shared site chrome and the
 * current news-post title/date row. The shared print framework correctly
 * removes the chrome, but its generic direct-child rule also hid this title
 * row. Restore only the source title row for cemetery/event news posts; the
 * title is still read from the page's existing DOM and is not duplicated or
 * rewritten.
 */

@media print {
  body.bmcpc-print-active.bmcpc-print-profile-standard:is(.single-cemeteries, .single-events)
    header[data-elementor-type="header"]
    > [data-id="afa0ee3"]:has(h2.elementor-heading-title) {
    display: flex !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="afa0ee3"]:has(h2.elementor-heading-title)
    > :is([data-id="41e0c126"], [data-id="7f35e79"]) {
    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;
  }

  body.bmcpc-print-active.bmcpc-print-profile-standard:is(.single-cemeteries, .single-events)
    header[data-elementor-type="header"]
    > [data-id="afa0ee3"]:has(h2.elementor-heading-title)
    h2.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: 14pt !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;
  }

  body.bmcpc-print-active.bmcpc-print-profile-standard:is(.single-cemeteries, .single-events)
    header[data-elementor-type="header"]
    > [data-id="afa0ee3"]:has(h2.elementor-heading-title)
    > [data-id="7f35e79"] {
    color: var(--bmcpc-print-muted, #5a6663) !important;
    font-family: "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", Arial, sans-serif !important;
    font-size: 9pt !important;
    line-height: 1.3 !important;
  }
}
