/* Unity Gala twelve-page interactive booklet and editable interior.
   Exactly 12 fixed-size 5.5x8.5 portrait pages, 1 & 12 locked.
   Booklet print imposition: three double-sided Letter sheets (12/4). */

body.ugpb-program-page .ugle12-studio,
body.ugpb-manager-page .ugle12-manager {box-sizing:border-box}
body.ugpb-program-page .ugle12-studio *,
body.ugpb-manager-page .ugle12-manager * {box-sizing:border-box}

body.ugpb-program-page .ugle12-studio {
  width:min(calc(100% - 24px),1160px);
  max-width:1160px;
  margin:16px auto 30px;
  color:#20374c;
}
body.ugpb-program-page .ugle12-controls {
  background:linear-gradient(120deg,#132b44,#241f38 66%,#572538);
  color:#fff7e6;
  border:1px solid #b49259;
  border-radius:14px;
  padding:17px 19px 14px;
  margin-bottom:13px;
  box-shadow:0 7px 18px rgba(16,32,49,.14);
}
body.ugpb-program-page .ugle12-brandline {
  text-align:center;
}
body.ugpb-program-page .ugle12-kicker {
  display:block;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  color:#f4d48e;
}
body.ugpb-program-page .ugle12-brandline h2 {
  margin:4px 0 3px !important;
  font:700 clamp(19px,2.6vw,27px)/1.18 Georgia,serif !important;
  color:#fff8e9 !important;
}
body.ugpb-program-page .ugle12-brandline p {
  margin:0 !important;
  font-size:12px !important;
  color:#dce8ee !important;
  line-height:1.45;
}
body.ugpb-program-page .ugle12-buttons {
  display:flex;align-items:center;justify-content:center;
  gap:11px;
  margin:15px auto 11px;
}
body.ugpb-program-page .ugle12-buttons button {
  display:inline-flex;
  justify-content:center;align-items:center;
  gap:6px;
  min-height:42px;
  padding:8px 15px;
  border:1px solid #b9935a !important;
  border-radius:9px !important;
  background:#e9ca8b !important;
  color:#1b344c !important;
  -webkit-text-fill-color:#1b344c !important;
  font-family:inherit;font-weight:900;font-size:12px;
  cursor:pointer;
}
body.ugpb-program-page .ugle12-buttons button:disabled{
  opacity:.44;cursor:not-allowed;box-shadow:none;
}
body.ugpb-program-page .ugle12-count {
  min-width:126px;
  text-align:center;
  color:#fff5df;
  font-size:12px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
body.ugpb-program-page .ugle12-page-strip {
  display:flex;align-items:stretch;gap:5px;
  width:100%;max-width:100%;
  margin:0 auto;
  padding:6px 0;
  overflow-x:auto;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
body.ugpb-program-page .ugle12-page-chip {
  flex:1 0 62px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:3px;
  min-width:62px;
  max-width:140px;
  min-height:55px;
  padding:6px 5px;
  background:rgba(255,255,255,.09) !important;
  border:1px solid rgba(233,206,151,.32) !important;
  border-radius:8px !important;
  color:#e9edf1 !important;
  -webkit-text-fill-color:#e9edf1 !important;
  text-align:center;
  cursor:pointer;
}
body.ugpb-program-page .ugle12-page-chip strong{
  font-size:15px;line-height:1.1;color:#f1d18c !important;
  -webkit-text-fill-color:#f1d18c !important;
}
body.ugpb-program-page .ugle12-page-chip small{
  display:block;max-width:100%;
  font-size:9px;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:inherit;
}
body.ugpb-program-page .ugle12-page-chip.is-active,
body.ugpb-program-page .ugle12-page-chip[aria-current="page"]{
  background:#e6c480 !important;
  border-color:#e6c480 !important;
  color:#1c344b !important;
  -webkit-text-fill-color:#1c344b !important;
}
body.ugpb-program-page .ugle12-page-chip.is-active strong {
  color:#132a40 !important;-webkit-text-fill-color:#132a40 !important;
}
body.ugpb-program-page .ugle12-studio :is(button,a):focus-visible {
  outline:3px solid #d8ae61 !important;
  outline-offset:2px !important;
}
body.ugpb-program-page .ugle12-live-controls {
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:7px 13px;
  border-top:1px solid rgba(244,207,142,.27);
  margin-top:8px;padding-top:11px;
  font-size:11px;color:#d6e2eb;
}
body.ugpb-program-page .ugle12-edit-link {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid #d4b477;
  border-radius:8px;
  color:#20374f !important;-webkit-text-fill-color:#20374f !important;
  background:#f0d59d !important;
  font-size:11px;
  font-weight:850;
  text-decoration:none !important;
}
body.ugpb-program-page .ugle12-edit-link[hidden]{display:none!important}
body.ugpb-program-page .ugle12-legend{
  color:#d6e2eb;
  line-height:1.45;
}

/* Double-page open-book preview, one page on mobile. */
body.ugpb-program-page .ugpb-book.ugle12-book {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  justify-items:stretch;
  align-items:start;
  gap:7px;
  width:100% !important;
  max-width:1120px !important;
  min-width:0 !important;
  margin:0 auto !important;
  padding:10px !important;
  border-radius:15px;
  background:linear-gradient(110deg,#d3c1a4,#f7efe0 49%,#c7b494);
  box-shadow:0 14px 40px rgba(13,29,46,.14);
}
body.ugpb-program-page .ugpb-book.ugle12-book.is-cover-view {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.ugpb-program-page .ugle12-book.is-cover-view .ugle12-page[data-page="1"] {
  grid-column:2;
}
body.ugpb-program-page .ugle12-book.is-cover-view .ugle12-page[data-page="12"] {
  grid-column:1;
}
body.ugpb-program-page .ugle12-page {
  display:none;
  position:relative;
  isolation:isolate;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  aspect-ratio:5.5 / 8.5;
  height:auto;
  overflow:hidden;
  margin:0 !important;
  padding:0 !important;
  border:1px solid #d9c6a4 !important;
  border-radius:4px;
  background:#fffdf9;
  color:#25384a;
  box-shadow:0 5px 17px rgba(20,27,39,.16);
}
body.ugpb-program-page .ugle12-page.is-active {display:block !important}
body.ugpb-program-page .ugle12-page .ugle12-leaf {
  position:absolute;inset:0;display:block;
  width:100%;height:100%;
  overflow:hidden;
  background:#fffdf9;
}
body.ugpb-program-page .ugle12-page.ugle12-editable .ugle12-leaf {
  background:
    radial-gradient(ellipse at top right,rgba(204,159,76,.045),transparent 55%),
    #fffdf9;
}
body.ugpb-program-page .ugle12-leaf-header,
body.ugpb-program-page .ugle12-leaf-footer {
  position:absolute;
  left:0;right:0;
  display:flex;justify-content:space-between;align-items:center;
  padding:0 5.8%;
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  color:#937245;
  pointer-events:none;
  z-index:2;
}
body.ugpb-program-page .ugle12-leaf-header {
  top:0;
  height:6.7%;
  border-bottom:1px solid rgba(175,143,87,.24);
}
body.ugpb-program-page .ugle12-leaf-footer {
  bottom:0;
  height:5.0%;
  border-top:1px solid rgba(175,143,87,.24);
}
body.ugpb-program-page .ugle12-leaf-footer strong {
  font-size:12px;
  color:#5c4b38;
}
body.ugpb-program-page .ugle12-page-inner {
  position:absolute;
  inset:6.7% 0 5%;
  padding:2.4% 5.8%;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#c4a974 transparent;
  font-size:16px;
  line-height:1.43;
}
body.ugpb-program-page .ugle12-page-inner > .ugle12-linked-body,
body.ugpb-program-page .ugle12-page-inner > .ugle12-custom-body {
  width:100%;min-width:0;min-height:0;
}
body.ugpb-program-page .ugle12-page-inner :is(p,li) {
  font-size:clamp(12px,1.55vw,16px) !important;
  line-height:1.42 !important;
  margin:0 0 .6em !important;
}
body.ugpb-program-page .ugle12-page-inner h2 {
  font-size:clamp(17px,2vw,22px) !important;
  line-height:1.16 !important;
  margin:3px 0 10px !important;
  color:#24364a !important;
}
body.ugpb-program-page .ugle12-page-inner h3 {
  font-size:clamp(14px,1.7vw,17px) !important;
  line-height:1.2 !important;
  margin:6px 0 4px !important;
}
body.ugpb-program-page .ugle12-page-inner img,
body.ugpb-program-page .ugle12-page-inner iframe,
body.ugpb-program-page .ugle12-page-inner video {
  max-width:100% !important;
  height:auto;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-book-section {
  display:block;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  max-width:100% !important;
  padding:7px 0 10px !important;
  margin:0 !important;
  border:0 !important;
  box-shadow:none !important;
  break-before:auto !important;
  break-after:auto !important;
  page-break-before:auto !important;
  page-break-after:auto !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-book-section .ugpb-people-grid,
body.ugpb-program-page .ugle12-page-inner .ugpb-book-section .ugpb-domino-team-grid {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:7px !important;
}
body.ugpb-program-page .ugle12-page-inner :is(.ugpb-people-grid,.ugpb-domino-team-grid) article {
  display:grid;
  grid-template-columns:67px minmax(0,1fr) !important;
  padding:0 !important;
  min-height:0 !important;
  box-shadow:none !important;
  border:1px solid #e9ddca !important;
}
body.ugpb-program-page .ugle12-page-inner :is(.ugpb-people-grid,.ugpb-domino-team-grid) article > img {
  display:block;width:67px !important;
  height:85px !important;min-height:0 !important;
  max-height:85px !important;object-fit:cover !important;
}
body.ugpb-program-page .ugle12-page-inner :is(.ugpb-people-grid,.ugpb-domino-team-grid) article > div {
  padding:7px 9px !important;
  align-self:center;
}
body.ugpb-program-page .ugle12-page-inner :is(.ugpb-people-grid,.ugpb-domino-team-grid) p {
  font-size:12px !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-committee-grid {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:5px !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-committee-grid article {
  padding:6px !important;
  gap:5px !important;
  grid-template-columns:28px minmax(0,1fr) !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-committee-initials {
  width:28px !important;height:28px !important;font-size:11px !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-public-schedule article {
  padding:6px 0 !important;
  grid-template-columns:65px minmax(0,1fr) !important;
  gap:7px !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-public-schedule time {
  font-size:12px !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-fixed-art-page {
  display:block;
  width:100% !important;
  max-width:100% !important;
  min-height:0 !important;
  height:auto !important;
  aspect-ratio:5.5/8.5;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-fixed-art-page img {
  display:block;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-document-section {
  overflow:visible !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-document-pages,
body.ugpb-program-page .ugle12-page-inner .ugpb-pdf-canvas-pages {
  max-width:100% !important;
  width:100% !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-ad-insert {
  padding:8px !important;
  min-height:0 !important;
  width:100% !important;
  height:auto !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-ad-art-frame {
  width:100% !important;
  height:auto !important;
  max-height:260px !important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-ad-artwork {
  max-height:260px !important;
  object-fit:contain !important;
}
body.ugpb-program-page .ugle12-page-inner .ugle-contents-list {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:0 9px !important;
}
body.ugpb-program-page .ugle12-page-inner .ugle-contents-item {
  min-height:34px !important;
  padding:4px 0 !important;
}
body.ugpb-program-page .ugle12-page-inner .ugle-contents-copy small {display:none!important}
body.ugpb-program-page .ugle12-page-inner .ugle-contents-copy strong {font-size:11px!important}
body.ugpb-program-page .ugle12-page-inner .ugpb-editorial-contents {
  padding:10px 0 !important;
  border:0!important;
  min-height:0!important;
}
body.ugpb-program-page .ugle12-page-inner .ugpb-editorial-contents:before {display:none!important}
body.ugpb-program-page .ugle12-page-inner .ugle-editorial-top,
body.ugpb-program-page .ugle12-page-inner .ugle-editorial-bottom {display:none!important}
body.ugpb-program-page .ugle12-page-inner .ugle-editorial-intro h2 {font-size:20px!important}
body.ugpb-program-page .ugle12-page-inner .ugle-editorial-intro {margin:7px 0!important}
body.ugpb-program-page .ugle12-page-inner .ugle-editorial-intro p:last-child {display:none!important}

/* Locked outside artwork: original plugin output retained untouched. */
body.ugpb-program-page .ugle12-locked .ugpb-cover,
body.ugpb-program-page .ugle12-locked .ugpb-fixed-art-page {
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  min-height:0 !important;
  aspect-ratio:5.5/8.5;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border:0 !important;
}
body.ugpb-program-page .ugle12-locked .ugpb-fixed-art-page img {
  display:block;width:100%;height:100%;object-fit:cover;
}
body.ugpb-program-page .ugle12-locked .ugpb-cover-art {
  position:absolute;inset:0;
  width:100% !important;height:100% !important;
}
body.ugpb-program-page .ugle12-locked .ugpb-cover-inner {
  position:absolute !important;
  inset:5% 7% 6% !important;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  align-items:center !important;
}
body.ugpb-program-page .ugle12-cover-fallback {
  display:flex;flex-direction:column;justify-content:space-between;
  align-items:center;height:100%;padding:18%;
  background:linear-gradient(140deg,#12263a,#4c1c32);
  color:#fff2c9;text-align:center;
}
body.ugpb-program-page .ugle12-cover-fallback strong {
  font:700 24px/1.2 Georgia,serif;
}
body.ugpb-program-page .ugle12-footer-controls {
  display:flex;
  justify-content:space-between;gap:10px;
  flex-wrap:wrap;
  margin:13px 8px;
  color:#576c7f;
  font-size:11px;
  line-height:1.4;
}
body.ugpb-program-page .ugle12-overflow-status.is-warning {color:#8d5026;font-weight:850}

/* Manager's independent content editors for pages 2–11. */
body.ugpb-manager-page .ugle12-manager {
  border:1px solid #d7c29a;
  border-radius:14px;
  background:#fffaf2;
  padding:20px;
  margin:0 0 22px;
  color:#23394f;
}
body.ugpb-manager-page .ugle12-manager-head {
  display:flex;justify-content:space-between;align-items:center;
  gap:17px;flex-wrap:wrap;
  margin-bottom:15px;
}
body.ugpb-manager-page .ugle12-manager-head span,
body.ugpb-manager-page .ugle12-editor-heading > span {
  display:block;color:#9a6c2e;
  font-size:10px;font-weight:900;letter-spacing:.12em;
}
body.ugpb-manager-page .ugle12-manager-head h2 {
  margin:5px 0 5px !important;
  color:#17344f !important;
  font:700 clamp(21px,2.5vw,28px)/1.19 Georgia,serif !important;
}
body.ugpb-manager-page .ugle12-manager-head p,
body.ugpb-manager-page .ugle12-editor-heading p {
  margin:0;color:#50677b;font-size:13px;line-height:1.48;
}
body.ugpb-manager-page .ugle12-manager-preview {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:10px 16px;
  background:#1b3851!important;color:#fff5dc!important;
  -webkit-text-fill-color:#fff5dc!important;
  border:1px solid #ad9259;
  border-radius:9px;
  font-weight:850;font-size:12px;text-decoration:none!important;
}
body.ugpb-manager-page .ugle12-manager-pages {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(136px,1fr));
  gap:7px;
  margin:15px 0 20px;
}
body.ugpb-manager-page .ugle12-manager-pages :is(a,span){
  display:flex;flex-direction:column;justify-content:center;
  min-height:49px;
  padding:8px 10px;
  border:1px solid #ded2bc;
  border-radius:8px;
  background:#fff;
  color:#243d55 !important;
  font-size:11px;
  font-weight:800;
  line-height:1.3;
  text-decoration:none!important;
}
body.ugpb-manager-page .ugle12-manager-pages a.is-current{
  border-color:#b48a44;
  background:#f3e1b9 !important;
  color:#18334c !important;
  box-shadow:0 3px 11px rgba(30,40,52,.09);
}
body.ugpb-manager-page .ugle12-manager-pages .ugle12-locked-page{
  background:#eceef0;
  color:#6e7a85 !important;
}
body.ugpb-manager-page .ugle12-locked-page small{
  font-size:9px;
  font-weight:800;
  color:#956d38 !important;
}
body.ugpb-manager-page .ugle12-editor-form{
  background:#fff;border:1px solid #e0d6c6;
  border-radius:11px;
  padding:18px;
  max-width:100%;
}
body.ugpb-manager-page .ugle12-editor-heading{
  border-bottom:1px solid #e7dccc;padding-bottom:13px;margin-bottom:14px;
}
body.ugpb-manager-page .ugle12-editor-heading h3 {
  margin:4px 0 !important;
  font:700 22px/1.2 Georgia,serif !important;color:#223c54 !important;
}
body.ugpb-manager-page .ugle12-editor-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
body.ugpb-manager-page .ugle12-editor-grid label,
body.ugpb-manager-page .ugle12-editor-label{
  display:flex;flex-direction:column;gap:6px;
  min-width:0;
  color:#2b4055;font-size:12px;font-weight:850;
}
body.ugpb-manager-page .ugle12-editor-grid :is(input,select){
  display:block;width:100%;min-height:45px;
  padding:10px 12px !important;
  border:1px solid #b6c2cb !important;
  border-radius:8px !important;
  background:#fff !important;color:#243b50 !important;
  -webkit-text-fill-color:#243b50 !important;
  font-size:13px !important;font-weight:650;
}
body.ugpb-manager-page .ugle12-linked-info{
  margin-top:14px;
  padding:14px;
  border:1px solid #d9c69f;
  border-radius:9px;
  background:#fff8e8;
  font-size:12px;line-height:1.5;
}
body.ugpb-manager-page .ugle12-linked-info strong{color:#203b54;font-weight:900}
body.ugpb-manager-page .ugle12-linked-info p {margin:4px 0 7px;font-size:12px;color:#506579}
body.ugpb-manager-page .ugle12-linked-info a{color:#6b451c;font-weight:850}
body.ugpb-manager-page .ugle12-custom-fields{
  margin-top:14px;
  padding:13px;
  border:1px solid #ded2bd;
  border-radius:9px;
  background:#fdfcf8;
}
body.ugpb-manager-page .ugle12-custom-fields p{
  font-size:12px;color:#566c7d;
  margin:5px 0 13px;
}
body.ugpb-manager-page .ugle12-editor-form[data-mode="linked"] .ugle12-custom-fields{
  display:none;
}
body.ugpb-manager-page .ugle12-editor-form[data-mode="custom"] .ugle12-linked-info{
  display:none;
}
body.ugpb-manager-page .ugle12-editor-actions{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:13px;
  padding-top:15px;
}
body.ugpb-manager-page .ugle12-editor-actions p {
  margin:0;max-width:550px;
  color:#566b7e;font-size:11px;line-height:1.48;
}
body.ugpb-manager-page .ugle12-save {
  min-height:46px;padding:10px 18px;
  border:1px solid #b29054 !important;border-radius:9px !important;
  background:#dec27b !important;color:#14314b !important;
  -webkit-text-fill-color:#14314b !important;
  font-size:13px;font-weight:900;cursor:pointer;
}
body.ugpb-manager-page .ugle12-save-notice{
  padding:12px 14px;
  margin:9px 0;
  border:1px solid #a9cead;
  border-radius:9px;
  background:#edf6ee;color:#234d32;
  font-size:12px;font-weight:850;
}

@media (max-width:850px) {
  body.ugpb-program-page .ugpb-book.ugle12-book,
  body.ugpb-program-page .ugpb-book.ugle12-book.is-cover-view {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    max-width:540px !important;
  }
  body.ugpb-program-page .ugle12-book.is-cover-view .ugle12-page[data-page="1"],
  body.ugpb-program-page .ugle12-book.is-cover-view .ugle12-page[data-page="12"]{
    grid-column:1;
  }
  body.ugpb-program-page .ugle12-page-inner {
    font-size:16px;
  }
}
@media (max-width:620px) {
  body.ugpb-program-page .ugle12-studio{
    width:calc(100% - 12px);margin:10px auto 25px;
  }
  body.ugpb-program-page .ugle12-controls {
    padding:13px 11px;
  }
  body.ugpb-program-page .ugle12-count {min-width:83px;font-size:11px}
  body.ugpb-program-page .ugle12-buttons {gap:6px}
  body.ugpb-program-page .ugle12-buttons button{
    min-height:42px;padding:9px 10px;font-size:11px;
  }
  body.ugpb-program-page .ugle12-page-chip {flex-basis:72px;min-width:72px}
  body.ugpb-program-page .ugle12-book.ugle12-book {padding:5px!important;gap:0}
  body.ugpb-program-page .ugle12-page {box-shadow:none}
  body.ugpb-program-page .ugle12-page-inner {padding:2.3% 5.1%}
  body.ugpb-program-page .ugle12-page-inner .ugpb-people-grid article,
  body.ugpb-program-page .ugle12-page-inner .ugpb-domino-team-grid article{
    grid-template-columns:55px minmax(0,1fr) !important;
  }
  body.ugpb-program-page .ugle12-page-inner :is(.ugpb-people-grid,.ugpb-domino-team-grid) article > img{
    width:55px!important;height:70px!important;
  }
  body.ugpb-program-page .ugle12-page-inner h2 {font-size:17px!important}
  body.ugpb-manager-page .ugle12-manager {padding:13px}
  body.ugpb-manager-page .ugle12-editor-form {padding:12px}
  body.ugpb-manager-page .ugle12-editor-grid{grid-template-columns:1fr}
  body.ugpb-manager-page .ugle12-manager-preview {width:100%}
}

/* Print each finished leaf individually (portrait, half-letter).
   Printer's Booklet setting imposes pages onto 3 double-sided Letter
   sheets: outside sheet has BACK left and FRONT right. */
@media print {
  @page {size:5.5in 8.5in;margin:0}
  html, body{width:5.5in!important;height:auto!important}
  body.ugpb-program-page .ugle12-controls,
  body.ugpb-program-page .ugle12-footer-controls,
  body.ugpb-program-page .ugle12-studio .ugle12-edit-link,
  body.ugpb-program-page .ugle12-studio .ugle12-page-strip {
    display:none !important;
  }
  body.ugpb-program-page .ugle12-studio{
    width:5.5in !important;
    max-width:5.5in !important;
    padding:0!important;
    margin:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.ugpb-program-page .ugpb-book.ugle12-book {
    display:block !important;
    grid-template-columns:none !important;
    width:5.5in !important;
    max-width:5.5in !important;
    height:auto !important;
    padding:0 !important;
    margin:0 !important;
    gap:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.ugpb-program-page .ugle12-page,
  body.ugpb-program-page .ugle12-page:not(.is-active){
    display:block !important;
    float:none !important;
    width:5.5in!important;
    height:8.5in!important;
    max-width:5.5in!important;
    max-height:8.5in!important;
    min-height:8.5in!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    page-break-after:always!important;
    break-after:page!important;
    page-break-inside:avoid!important;
    break-inside:avoid!important;
    print-color-adjust:exact!important;
    -webkit-print-color-adjust:exact!important;
  }
  body.ugpb-program-page .ugle12-page:last-child{
    break-after:auto!important;
    page-break-after:auto!important;
  }
  body.ugpb-program-page .ugle12-page .ugle12-leaf{
    width:5.5in!important;
    height:8.5in!important;
    position:absolute!important;
    inset:0!important;
    overflow:hidden!important;
    box-shadow:none!important;
  }
  body.ugpb-program-page .ugle12-page-inner{
    position:absolute!important;
    top:.50in!important;
    bottom:.37in!important;
    left:0!important;right:0!important;
    width:5.5in!important;
    padding:.08in .27in .06in!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
    color:#213549!important;
    font-size:9.2pt!important;
    line-height:1.26!important;
  }
  body.ugpb-program-page .ugle12-leaf-header{
    height:.50in!important;
    padding:0 .27in!important;
    font-size:7pt!important;
  }
  body.ugpb-program-page .ugle12-leaf-footer{
    height:.37in!important;
    padding:0 .27in!important;
    font-size:7pt!important;
  }
  body.ugpb-program-page .ugle12-page-inner :is(p,li){
    font-size:9.2pt!important;
    line-height:1.28!important;
    margin:0 0 4pt!important;
  }
  body.ugpb-program-page .ugle12-page-inner h2,
  body.ugpb-program-page .ugle12-page-inner .ugpb-book-section > h2{
    font-size:13pt!important;
    line-height:1.12!important;
    margin:1pt 0 5pt!important;
  }
  body.ugpb-program-page .ugle12-page-inner h3{
    font-size:10.5pt!important;
    line-height:1.2!important;
    margin:3pt 0!important;
  }
  body.ugpb-program-page .ugle12-page-inner .ugpb-book-section,
  body.ugpb-program-page .ugle12-page-inner .ugpb-document-section,
  body.ugpb-program-page .ugle12-page-inner .ugpb-ad-insert,
  body.ugpb-program-page .ugle12-page-inner .ugpb-fixed-art-page{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:.05in 0!important;
    border:0!important;
    break-before:auto!important;
    break-after:auto!important;
    page-break-before:auto!important;
    page-break-after:auto!important;
    break-inside:auto!important;
    page-break-inside:auto!important;
    overflow:visible!important;
  }
  body.ugpb-program-page .ugle12-page-inner .ugpb-fixed-art-page {
    padding:0!important;
    aspect-ratio:5.5/8.5!important;
    overflow:hidden!important;
  }
  body.ugpb-program-page .ugle12-page-inner .ugpb-fixed-art-page img{
    display:block!important;width:100%!important;height:100%!important;
    object-fit:contain!important;
  }
  body.ugpb-program-page .ugle12-page-inner .ugpb-ad-art-frame{
    max-height:2.5in!important;
  }
  body.ugpb-program-page .ugle12-page-inner .ugpb-ad-artwork{
    max-height:2.5in!important;
  }
  body.ugpb-program-page .ugle12-page-inner .ugpb-document-pages img,
  body.ugpb-program-page .ugle12-page-inner .ugpb-document-pages canvas{
    width:100%!important;
    max-height:6.8in!important;
    object-fit:contain!important;
  }
  body.ugpb-program-page .ugle12-locked .ugpb-cover,
  body.ugpb-program-page .ugle12-locked .ugpb-fixed-art-page {
    display:block!important;
    width:5.5in!important;
    height:8.5in!important;
    min-height:8.5in!important;
    max-height:8.5in!important;
    padding:0!important;
    margin:0!important;
    break-before:auto!important;
    break-after:auto!important;
    page-break-before:auto!important;
    page-break-after:auto!important;
    overflow:hidden!important;
  }
}

/* Print proof shows all pages in order on screen before PDF export. */
@media screen {
  body.ugpb-program-page .ugle12-print-proof .ugle12-controls {display:none}
  body.ugpb-program-page .ugle12-print-proof .ugle12-page,
  body.ugpb-program-page .ugle12-print-proof .ugle12-page:not(.is-active){
    display:block !important;
    width:min(100%,5.5in) !important;
    margin:0 auto 17px!important;
  }
  body.ugpb-program-page .ugle12-print-proof .ugpb-book.ugle12-book {
    display:block!important;
    width:min(100%,6in)!important;
    padding:15px!important;
  }
}