/* Printouts. The sheets are built in #print just before printing (js/views/print.js)
   and are the only thing on the paper. Black on white, no shading, to save ink. */

#print { display: none; }

@page { size: A4 portrait; margin: 12mm; }

@media print {
  html, body { height: auto; background: #fff; display: block; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; }
}

#print { color: #000; font: 12pt/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.sheet { break-after: page; }
.sheet:last-child { break-after: auto; }
.sheet h1, .sheet h3 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 600; margin: 0; }
.sheet header { display: flex; align-items: baseline; gap: 5mm; border-bottom: .6mm solid #000; padding-bottom: 2mm; margin-bottom: 4mm; }
.sheet header h1 { font-size: 22pt; }
.sheet .printed { margin-left: auto; font-size: 9pt; color: #555; }
.sheet .lbl { font-size: 8.5pt; letter-spacing: .08em; text-transform: uppercase; color: #444; margin: 0 0 1mm; }
.sheet .box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 5.5mm; height: 5.5mm; border: .4mm solid #000; border-radius: 1mm; margin-right: 2.5mm; font-size: 11pt; line-height: 1; }
.sheet .it { display: flex; align-items: flex-start; break-inside: avoid; }
.sheet .it > span:last-child { min-width: 0; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.sheet .line { border-bottom: .25mm solid #999; height: 8mm; }
.sheet .time { font-variant-numeric: tabular-nums; }
.sheet .away-line { font-style: italic; }

/* Today */
.today-sheet header h1 { font-size: 30pt; }
.today-sheet .away-line { font-size: 14pt; margin: 0 0 4mm; }
.today-sheet .blk { margin-bottom: 5mm; }
.today-sheet .blk .it { font-size: 17pt; margin: 2.5mm 0; }
.today-sheet .blk .box { width: 7mm; height: 7mm; margin-top: .5mm; font-size: 14pt; }
.today-sheet .blk.small .it { font-size: 13pt; margin: 1.5mm 0; }
.today-sheet .blk.small .box { width: 5.5mm; height: 5.5mm; }
.today-sheet .dinner-box { border: .5mm solid #000; border-radius: 2mm; padding: 3mm 4mm; font-size: 17pt; margin: 1mm 0 6mm; min-height: 14mm; }
.today-sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; margin-top: 8mm; }
.today-sheet .two .it { font-size: 13pt; margin-bottom: 2mm; }

/* Week: a row per day */
.week-sheet .week { border: .4mm solid #000; }
.week-sheet .wd { display: grid; grid-template-columns: 34mm 1fr 44mm; border-top: .25mm solid #000; min-height: 30mm; break-inside: avoid; font-size: 11pt; }
.week-sheet .wd:first-child { border-top: 0; }
.week-sheet .wd > div { padding: 2mm 2.5mm; min-width: 0; }
.week-sheet .day { border-right: .25mm solid #000; }
.week-sheet .day h3 { font-size: 14pt; }
.week-sheet .day > span { font-size: 9.5pt; color: #444; }
.week-sheet .wd.is-today .day { border-left: 1.2mm solid #000; }
.week-sheet .day .away-line { font-size: 9.5pt; margin-top: 1.5mm; }
.week-sheet .body { column-count: 2; column-gap: 5mm; }
.week-sheet .body .it { margin-bottom: 1.6mm; break-inside: avoid; }
.week-sheet .body .box { width: 4.5mm; height: 4.5mm; margin: .2mm 2mm 0 0; font-size: 9pt; }
.week-sheet .din { border-left: .25mm solid #000; }
.week-sheet .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6mm; margin-top: 4mm; }
.week-sheet .three .it { font-size: 11pt; margin-bottom: 1.5mm; }

/* Shopping list */
.shop-sheet .shop { column-count: 2; column-gap: 12mm; }
.shop-sheet .g { break-inside: avoid; margin-bottom: 4mm; }
.shop-sheet .it { font-size: 16pt; margin: 2.2mm 0; align-items: center; }
.shop-sheet .it .line { flex: 1; height: 7mm; }
