.pdf-mode h1,
.pdf-mode h2,
.pdf-mode h3,
.pdf-mode h4,
.pdf-mode h5,
.pdf-mode h6 {
  line-height: 1 !important;
}

.pdf-view.snyco,
.pdf-view.programme-notes,
.pdf-view.support-us,
.pdf-view.our-team .pdf-view.selected-item {
  display: none;
}

.pdf-mode .prog-info.elementor-section-boxed > .elementor-container,
.pdf-mode .event-list,
.pdf-mode .manual-selection,
.pdf-mode .partners-acknowledgement,
.pdf-mode .pdf-view.programme-notes,
.pdf-mode .pdf-view.our-team {
  max-width: calc(100% - 160px) !important;
}

.pdf-mode .event-list .composer-profile {
  margin: 24px 0 12px;
  position: relative;
}

.pdf-mode .event-list p,
.pdf-mode .event-list ul {
  margin-bottom: 0 !important;
}
.pdf-mode p {
  orphans: 3;
  widows: 3;
}
.pdf-mode .event-list .musician-list {
  margin: 12px 0 0;
}

.pdf-mode .pdf-view.programme-notes {
  margin: auto;
}
/* Hide programme-notes entirely in PDF when there is no content (e.g. Chinese version) */
.pdf-mode .pdf-view.programme-notes:not(:has(.qodef-qi-post-content > *)) {
  display: none !important;
}
.pdf-mode
  .pdf-view.programme-notes.elementor-section.elementor-section-boxed
  > .elementor-container {
  max-width: 100% !important;
}
.pdf-view.programme-notes h4 {
  margin: 0 0 24px;
}
.pdf-view.programme-notes p {
  margin: 10px 0;
}
.pdf-view.programme-notes .elementor-widget-wrap {
  margin: 0 0 24px;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(180deg, rgba(63, 189, 173, 1), rgba(226, 228, 61, 1))
      border-box;
  border: 1px solid transparent;
  padding: 20px;
  border-radius: 20px;
}

.pdf-view.snyco h3 {
  margin: 0 0 24px;
}
.pdf-view.snyco .elementor-inner-section {
  margin: 0 0 24px;
  /* background: */
    /* linear-gradient(white, white) padding-box, */
    /* linear-gradient(180deg, rgba(63, 189, 173, 1), rgba(226, 228, 61, 1)) */
      /* border-box; */
  border: 1px solid transparent;
  padding: 20px 0;
  border-radius: 20px;
}
.pdf-view.snyco .elementor-inner-section p {
  margin: 10px 0;
}

.pdf-mode .pdf-view.sco-selection .mb-48.elementor-widget-heading {
  margin-bottom: 12px !important;
}
.pdf-view.sco-selection .pdf-view.selected-item {
  padding: 30px 0px !important;
  background: unset !important;
}
.pdf-view.sco-selection .pdf-view h3 {
  margin: 0 0 24px;
}
.pdf-view.sco-selection .pdf-view h5.elementor-heading-title {
  margin: 0 0 16px !important;
}
.pdf-view.management fieldset,
.pdf-view.sco-selection .pdf-view.selected-item fieldset {
  border: 1px solid rgb(70 70 70 / 0.5) !important;
  padding: 0 20px 10px !important;
  border-radius: 10px;
}

fieldset legend {
  margin-bottom: 20px;
  font-weight: unset !important;
}
fieldset h3 {
  font-size: 20px !important;
  margin: 0 !important;
}
fieldset.custom-fieldset.with-repeater {
  margin: 0 0 20px;
}
.pdf-view.management fieldset .fieldset-content p {
  margin-top: 0;
}
.pdf-view.management.orchestra fieldset legend {
  margin-bottom: 10px;
}
.pdf-view.management.orchestra fieldset p {
  display: none;
}
.pdf-view.management.orchestra fieldset h6 {
  font-weight: 400 !important;
  line-height: 20px !important;
}
.pdf-view.management.orchestra fieldset .fieldset-content {
  padding: 0 0 10px !important;
}

.partners-acknowledgement {
  padding-bottom: 100px !important;
}

.pdf-mode .event-list .acf-repeater-items-wrapper {
  height: fit-content !important;
  background: linear-gradient(90deg, rgba(226, 228, 61, 0.2) 0%, rgba(255, 241, 219, 0) 100%) !important;
  break-before: avoid;
  page-break-before: avoid;
}
.pdf-mode .event-list .activity-header {
  break-inside: avoid;
  page-break-inside: avoid;
  break-after: avoid;
  page-break-after: avoid;
}
.pdf-mode .event-list .acf-repeater-items-wrapper h4 {
  break-after: avoid;
  page-break-after: avoid;
  margin-top: 10px;
}


.pdf-mode .event-list .acf-repeater-items-wrapper .composer-profile::before,
.pdf-mode .event-list .acf-repeater-items-wrapper .musician-list::before {
  content: "";
  display: block;
  height: 10px;
}
.pdf-mode .event-list .musician-profile:first-of-type {
  margin-top: 20px;
}
.pdf-mode .event-list .musician-profile {
  margin: 0 0 20px;
}
.pdf-mode .event-list .musician-list h4 {
  break-after: avoid;
  page-break-after: avoid;
  margin-top: 10px;
}
.pdf-mode .event-list .musician-profile h6 {
  break-after: avoid;
  page-break-after: avoid;
  line-height: normal !important;
}
.pdf-mode .event-list .musician-profile .musician-tags {
  font-size: 12px;
  margin: 0;
  line-height: 100%;
  color: #3fbdad;
  break-after: avoid;
  page-break-after: avoid;
}

/* Page Break Control */
.pdf-mode .event-list .acf-repeater-items-wrapper:first-of-type {
  break-before: avoid-page;
}
.pdf-mode .event-list .composer-profile h6 {
  break-after: avoid;
  page-break-after: avoid;
}

/* Each snyco sub-section starts on its own page */
.pdf-view.snyco .elementor-inner-section:not(:first-of-type) {
  break-before: page;
  margin-top: 10px;
}
/* Audition flows with orchestra on the same page */
.pdf-view.snyco .pdf-view.management.orchestra ~ .elementor-inner-section {
  break-before: auto;
  break-inside: avoid;
}

.pdf-view.programme-notes,
.pdf-view.snyco,
.pdf-view.sco-selection {
  break-before: page;
  margin-top: 10px;
}
.pdf-view.sco-selection .selected-item p {
  break-inside: avoid;
}

.pdf-view.management {
  break-before: page;
  margin-top: 10px;
}
.pdf-view.management .elementor-widget-custom_fieldset_repeater_widget {
  break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  margin-bottom: 12px;
}


.partners-acknowledgement {
  break-before: page;
  margin-top: 10px;
}

.pdf-break-before {
  break-before: page !important;
  page-break-before: always !important;
}

.otgs-development-site-front-end {
  display: none !important;
}
