 
@page {
  size: letter landscape;
  margin: 0;
}
@media print {
  .no-print { display: none !important; }
   
  .page-excluded { display: none !important; }
  html, body { background: white; }
   
  .app-shell { display: block; min-height: 0; }
   
  main,
  body.is-luach main { padding: 0; max-width: none; margin: 0; }
   
  .pages { margin: 0; zoom: 1 !important; transform: none !important; width: auto !important; }
  .pages-fit { height: auto !important; overflow: visible !important; }
   
  #sheet-stack.is-side-by-side > .pages { display: block; }
  #sheet-stack.is-side-by-side > .pages > .page { zoom: 1; }
  .page {
    width: 11in;
    height: 8.5in;
    min-height: 0;
    margin: 0;
    padding: 0.35in 0.5in;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }
  .page:last-child { page-break-after: auto; }
  .cell { outline: none; }
}

 
@media print and (max-width: 10.99in) {
  .page, #sheet-stack.is-side-by-side > .pages > .page {
     
    zoom: clamp(0.72, min(calc(100vw / 11in), calc(100vh / 8.5in)), 1);
  }
}

@media print {
   
  .page, .page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
   
  .shacharis-panel { box-shadow: none; }
}

 
@media print {
  .week-cards { display: block; gap: 0; }
   
  .week-cards .week-card {
     
    zoom: 1 !important;
    border: none;
    box-shadow: none;
    margin: 0;
    break-after: page;
    break-inside: avoid;
  }
   
  .week-cards > :last-child .week-card,
  .week-cards > .week-card:last-child { break-after: auto; }
   
  .week-card, .week-card * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .week-line { break-inside: avoid; }
}

 
@media print {
   
  .week-pair {
    zoom: 1 !important;
    border: none;
    box-shadow: none;
    margin: 0;
     
    break-after: page;
    break-inside: avoid;
  }
  .week-cards > .week-pair:last-child,
  .week-cards > :last-child .week-pair { break-after: auto; }
   
  .week-pair .week-card { break-after: auto; }
  .week-pair, .week-pair * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

 

 

 
@media print {
   
  .poster { margin: 0; box-shadow: none; break-inside: avoid; zoom: 1 !important; }
   
  .poster, .poster * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
   
  body:has(.poster) h2.no-print, body:has(.poster) p.hint { display: none !important; }
   
  body:has(.poster):not(:has(.poster-all)):not(:has(.luach-sheet + .luach-sheet)),
  body:has(.poster):not(:has(.poster-all)):not(:has(.luach-sheet + .luach-sheet)) .app-shell,
  body:has(.poster):not(:has(.poster-all)):not(:has(.luach-sheet + .luach-sheet)) main {
    width: 8.5in; height: 11in;
    margin: 0; padding: 0;
    overflow: hidden;
  }
   
  body:has(.poster.is-landscape):not(:has(.poster-all)):not(:has(.luach-sheet + .luach-sheet)) main {
    position: relative;
  }
  .poster.is-landscape {
    position: absolute; top: 0; left: 0;
    margin: 0;
    transform-origin: 0 0;
    transform: translateY(11in) rotate(-90deg);
  }
   
  body:has(.poster-all),
  body:has(.poster-all) .app-shell,
  body:has(.poster-all) main {
    width: max-content; height: auto;
    margin: 0; padding: 0;
    overflow: visible;
  }
  .poster-all { gap: 0; }
  .poster-all-item { break-after: page; break-inside: avoid; }
  .poster-all-item:last-child { break-after: auto; }
   
  body:has(.luach-sheet + .luach-sheet),
  body:has(.luach-sheet + .luach-sheet) .app-shell,
  body:has(.luach-sheet + .luach-sheet) main {
    width: max-content; height: auto;
    margin: 0; padding: 0;
    overflow: visible;
  }
  .luach-sheets { gap: 0; }
  .luach-sheet { break-after: page; break-inside: avoid; }
  .luach-sheet:last-child { break-after: auto; }
   
  .poster-all-item.is-sideways { box-shadow: none; zoom: 1 !important; }
}

 
@media print and (max-width: 8.49in) {
  .week-pair, .week-cards .week-card, .poster {
    zoom: clamp(0.72, min(calc(100vw / 8.5in), calc(100vh / 11in)), 1) !important;
  }
   
  .week-pair .week-card { zoom: 1 !important; }
  .poster-all .poster { zoom: 1 !important; }
   
  .poster.is-landscape { zoom: 1 !important; }
}
