/* ============================================================
   Print stylesheet — the printed page should look designed:
   clean margins, ink on white, the grid filling the sheet,
   zero UI chrome. Works portrait & landscape, Letter/Legal/A4.
   ============================================================ */

@page {
  margin: 0.5in;
}

@media print {
  /* Hide all chrome */
  .site-header,
  .site-footer,
  .cal-controls,
  .cal-subtitle,
  .no-print {
    display: none !important;
  }

  html, body {
    background: #fff !important;
    color: #111 !important;
  }

  .container {
    width: 100%;
    margin: 0;
  }

  .cal-page { padding: 0; }

  .cal-toolbar { margin-bottom: 0.25in; }

  .cal-title {
    font-size: 26pt;
    color: #111;
  }
  .cal-title .cal-year {
    color: #555;
  }

  .cal-grid {
    border: 1px solid #999;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    animation: none;
  }

  .cal-dow {
    border-bottom: 1px solid #999;
    background: #fff;
  }
  .cal-dow > div {
    color: #444;
    padding: 6pt 8pt;
  }

  .cal-week + .cal-week .cal-day { border-top: 1px solid #ccc; }
  .cal-day + .cal-day { border-left: 1px solid #ccc; }

  .cal-day {
    background: #fff !important;
    padding: 5pt 7pt;
  }
  .cal-day .num { color: #111; }
  .cal-day.is-outside .num { color: #bbb; opacity: 1; }

  /* Keep "today" subtle in print: outlined, not filled */
  .cal-day.is-today .num {
    background: none;
    color: #111;
    box-shadow: none;
    border: 1.5pt solid #111;
  }

  /* Notes and (toggled-on) holidays print in clean ink */
  .cal-day .note {
    background: none;
    border: 0.5pt solid #bbb;
    color: #222;
  }
  .cal-day .note-input { display: none; }
  .show-holidays .cal-day.has-holiday { background: #f3f3f3 !important; }
  .show-holidays .cal-day .holiday-label { color: #333; }
  .cal-hint { display: none; }

  /* Fill the page: row height by number of weeks (set on .cal-grid) */
  .weeks-4 .cal-day { height: 1.95in; }
  .weeks-5 .cal-day { height: 1.55in; }
  .weeks-6 .cal-day { height: 1.28in; }

  @media (orientation: landscape) {
    .weeks-4 .cal-day { height: 1.45in; }
    .weeks-5 .cal-day { height: 1.15in; }
    .weeks-6 .cal-day { height: 0.95in; }
  }

  a { color: inherit; text-decoration: none; }
}
