@media print {
  nav,
  .no-print,
  .toolbar,
  ads,
  related,
  .site-header,
  .site-footer,
  .main-navigation,
  #wpadminbar { display: none !important; }

  html,
  body,
  .site,
  .site-content,
  .jwc-main,
  .jwc-article,
  .cal-wrap { background: #fff !important; color: #000 !important; }

  html,
  body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; height: auto; margin: 0 !important; padding: 0 !important; }
  main,
  .jwc-main,
  .site-content { margin: 0 !important; max-width: none !important; padding: 0 !important; width: 100% !important; }
  .jwc-article > * + * { margin-top: 5mm; }
  h1 { color: #000; font-size: 18pt; line-height: 1.1; margin: 0 0 8pt; }
  .calendar-heading { display: block !important; max-width: none; }
  .calendar-intro { color: #000; font-size: 8.5pt; line-height: 1.35; margin: 0 0 4mm; }

  .cal-wrap { border-radius: 0; overflow: visible; }
  .calendar-sheet .calendar-layout { display: flex !important; gap: 3mm; }
  .cal { border-collapse: collapse; page-break-inside: avoid; table-layout: fixed; width: 100%; }
  .cal caption { background: #fff !important; color: #000; font-size: 14pt; padding: 0 0 3mm; }
  .cal th,
  .cal td { background: #fff !important; border: 1px solid #000 !important; color: #000 !important; }
  .cal thead th { font-size: 7pt; padding: 2mm 1mm; }
  .cal td { height: 27mm; padding: 2mm; }
  .cal time { font-size: 13pt; }
  .cal .notes-row th { height: 25mm; }
  .cal .notes-row span { color: #000; }
  .cal-julian .jdn { color: #000; font-size: 6.5pt; margin-top: 4mm; }
  .blank-fields { font-size: 12pt; margin-bottom: 4mm; }
  .blank-fields i { border-color: #000; }
  .cal-blank td { height: 22mm; }

  .calendar-year h1 { font-size: 16pt; margin-bottom: 3mm; }
  .calendar-year .calendar-intro { display: none; }
  .year-grid { display: grid; gap: 3mm; margin: 0; }
  .orientation-land .year-grid { grid-template-columns: repeat(4, 1fr); }
  .orientation-portrait .year-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-month { break-inside: avoid; page-break-inside: avoid; }
  .mini-month .cal-wrap { border: 0; }
  .cal-mini caption { font-size: 8pt; padding: 0 0 1mm; }
  .cal-mini thead th { font-size: 4.8pt; padding: .5mm 0; }
  .cal-mini td { font-size: 5.5pt; height: 5.5mm; padding: .5mm; }
  .cal-mini time { font-size: inherit; }

  .ink-saver *,
  .ink-saver .cal * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  a,
  a:visited { color: #000 !important; text-decoration: none; }
  a[href]::after { content: none !important; }
}

@page { size: A4 portrait; margin: 10mm; }
@page jwc-a4-portrait { size: A4 portrait; margin: 10mm; }
@page jwc-a4-landscape { size: A4 landscape; margin: 8mm; }
@page jwc-letter-portrait { size: letter portrait; margin: .4in; }
@page jwc-letter-landscape { size: letter landscape; margin: .35in; }

@media print {
  body.size-a4.orientation-portrait main { page: jwc-a4-portrait; }
  body.size-a4.orientation-land main { page: jwc-a4-landscape; }
  body.size-letter.orientation-portrait main { page: jwc-letter-portrait; }
  body.size-letter.orientation-land main { page: jwc-letter-landscape; }
}
