@media print {
  body * {
    visibility: hidden;
  }

  .notation-area, .notation-area * {
    visibility: visible;
  }

  .notation-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: visible;
  }

  /* Hide common ad containers */
  iframe,
  script,
  ins,
  [id^="ad"],
  [id*="ad"],
  [class^="ad"],
  [class*="ad"],
  [class*="ads"],
  [class*="banner"],
  [class*="sponsor"] {
    display: none !important;
    visibility: hidden !important;
  }


  .page-break {
    break-before: page;
    page-break-before: always;
  }

  /* Reset zoom for print */
  .notation-area svg {
    transform: none !important;
  }

  /* Reset wrapper heights so SVGs stack correctly */
  .notation-block {
    height: auto !important;
  }
}
