/* sundayvisit.com.au/guides/large-print-calendar-2027/: printable large print calendar (23 Nov 2026).
   Loaded after guides.css and puzzles.css (which give the buttons, cards and the one-per-page print
   rules). Nothing under 18px on screen. On paper the year at a glance fills one A4 page and each month
   fills the next: day numbers at 30 point, the month name at 26 point and every other line at 14 point,
   the sizes the sudoku page uses. Chrome 78: no flex gap, and a plain value before any clamp(). */

/* A month page: seven columns, Monday first, with room to write in each day. */
.cal-grid, .cal-mini { border-collapse: collapse; table-layout: fixed; }
.cal-grid {
  width: 100%;
  max-width: 34rem;
  margin: 0 0 1.25rem;
  border: 3px solid var(--ink);
  background: #fffdf8;
  color: var(--ink);
  font: 600 1.25rem/1 var(--sans);
}
.cal-grid th {
  padding: .5rem 0;
  border: 1px solid #9aa3ad;
  border-bottom: 3px solid var(--ink);
  text-align: center;
  font: 600 1.125rem/1 var(--sans);
}
.cal-grid td { height: 3.25rem; padding: .4rem .5rem; border: 1px solid #9aa3ad; vertical-align: top; }
.cal-grid td.cal-out { background: none; }
.cal-grid td.cal-holiday { background: var(--sun); }
/* A holiday's name is written under the month name on a phone, where one square is too small to hold it.
   The year's small months never show it. */
.cal-name { display: none; }

/* Lines to write on. */
.cal-notes { max-width: 34rem; margin: 0 0 1.25rem; }
.cal-notes-label { margin: 0 0 .5rem; color: var(--ink-soft); font-size: 1.125rem; }
.cal-line { height: 2.75rem; border-bottom: 2px solid #9aa3ad; }

/* The year at a glance: twelve small months, one under another on a phone. */
.cal-year-grid { display: grid; grid-template-columns: 1fr; grid-gap: 1.25rem; max-width: 34rem; margin: 0 0 1.25rem; }
.cal-mini { width: 100%; border: 2px solid var(--ink); background: #fffdf8; color: var(--ink); font: 500 1.25rem/1 var(--sans); }
.cal-mini caption { padding: .5rem 0 .35rem; text-align: left; font: 600 1.25rem/1 var(--sans); }
.cal-mini th { padding: .25rem 0; border: 1px solid #9aa3ad; text-align: center; font: 600 1.125rem/1 var(--sans); }
.cal-mini td { height: 2.5rem; padding: 0; border: 1px solid #9aa3ad; text-align: center; vertical-align: middle; }
.cal-mini td.cal-out { background: none; }
.cal-mini td.cal-holiday { background: var(--sun); font-weight: 700; }
/* A small month's weekday row carries its three letters for the screen and one letter for paper. */
.cal-week-short { display: none; }

@media (min-width: 40rem) {
  .cal-grid, .cal-notes { max-width: 38rem; }
  .cal-grid { font-size: 1.5rem; }
  .cal-grid td { height: 5rem; }
  .cal-grid .cal-name { display: block; margin-top: .25rem; font: 400 1.125rem/1.25 var(--sans); hyphens: auto; }
  /* Wide enough that each small month holds its weekday names and two-figure days: two columns, then three. */
  .cal-year-grid { grid-template-columns: repeat(2, 1fr); grid-gap: 1.5rem; max-width: none; }
}

@media (min-width: 60rem) {
  .cal-year-grid { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  /* Every grid is about 170 mm tall, so each month fills one A4 page with room for its notes. */
  .cal-grid { width: 171mm; max-width: none; margin: 0 auto 4mm; font-size: 30pt; border: 2.5pt solid #000; background: none; color: #000; }
  .cal-grid th { padding: 0; height: 8mm; border: .75pt solid #888; border-bottom: 2.5pt solid #000; font-size: 14pt; background: none; color: #000; }
  .cal-grid td { height: 32mm; padding: 1.5mm 2mm; border: .75pt solid #888; }
  .cal-grid.cal-rows-4 td { height: 40mm; }
  .cal-grid.cal-rows-6 td { height: 26.5mm; }
  .cal-grid td.cal-holiday { background: #e8e8e8; }
  .cal-name { display: none; }
  .cal-grid .cal-name { display: block; margin-top: 1mm; font-size: 14pt; font-weight: 400; line-height: 1.25; }
  .cal-month .wsp-how { margin-bottom: 4mm; }
  .cal-notes { max-width: none; margin: 5mm 0 0; }
  .cal-notes-label { margin: 0 0 1mm; font-size: 14pt; color: #333; }
  .cal-line { height: 8mm; border-bottom: .75pt solid #888; }
  .cal-year-grid { grid-template-columns: repeat(3, 1fr); grid-gap: 4mm 4mm; max-width: none; margin: 0 0 4mm; }
  .cal-mini { font-size: 14pt; border: 1.5pt solid #000; background: none; color: #000; }
  .cal-mini caption { padding: 0 0 1mm; font-size: 14pt; }
  /* On paper a small month's weekday row is one letter each (M T W T F S S) at 14 point, the size of its day
     numbers: three letters at that size do not fit a column of a 59 mm month. */
  .cal-mini th { padding: 0; height: 5mm; border: .5pt solid #888; font-size: 14pt; }
  .cal-mini .cal-week-long { display: none; }
  .cal-mini .cal-week-short { display: inline; }
  .cal-mini td { height: 6.8mm; border: .5pt solid #888; }
  .cal-mini td.cal-holiday { background: #e8e8e8; }
  /* The sources stay on screen: on paper the year page's foot line names them. The last month's page is the
     last page, so nothing forces a break after it. */
  .cal-sources-band { display: none !important; }
  .cal-last { break-after: auto; }
}
