* { box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; color: #222; margin: 0; background: #fff; line-height: 1.5; }
main { max-width: 1000px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.7rem; margin: 8px 0 12px; }
h2 { font-size: 1.2rem; margin: 18px 0 8px; }
a { color: #1a56a0; }
.site-nav { background: #f2f4f7; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; border-bottom: 1px solid #d5d9df; }
.site-foot { max-width: 1000px; margin: 0 auto; padding: 8px 16px 24px; color: #555; font-size: 0.9rem; }
.small { font-size: 0.9rem; color: #555; }
.pager { display: flex; justify-content: space-between; margin: 4px 0 10px; }
.months a { margin-right: 10px; display: inline-block; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #555; padding: 4px; vertical-align: top; }
th { background: #eceff3; font-weight: bold; }
.grid.big td { height: 82px; width: 14.28%; }
.grid .d { font-weight: bold; }
.grid .empty { background: #f6f6f6; }
.grid.mini { font-size: 0.75rem; }
.grid.mini td, .grid.mini th { height: 22px; padding: 1px 3px; text-align: right; }
.year { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mm h2 { font-size: 0.95rem; margin: 0 0 3px; }
.notes td { height: 60px; margin-top: 8px; }
.fields td { height: 34px; width: 50%; }
.fields.four td { width: 25%; }
.fields td.tall { height: 120px; }
.weekly th { width: 14%; text-align: left; }
.weekly td { height: 56px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 8px; }
.sched th { width: 64px; text-align: right; }
.sched td { height: 28px; }
.todo caption { text-align: left; font-weight: bold; padding: 2px 0; }
.todo td.box { width: 26px; }
.todo td { height: 28px; }
.lesson th { width: 20%; text-align: left; }
.lesson tr.h1 td { height: 34px; }
.lesson tr.h2 td { height: 50px; }
.lesson tr.h3 td { height: 70px; }
.previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.previews figure { margin: 0; }
.previews img { width: 100%; height: auto; border: 1px solid #ccc; }
figcaption { font-size: 0.85rem; color: #555; }
.grid td.hol { background: #ffe9a8; font-weight: bold; }
.grid td.obs { background: #dbe8ff; font-weight: bold; }
.legend { font-size: 0.9rem; margin: 10px 0 4px; }
.hollist { column-count: 2; column-gap: 24px; margin: 4px 0; padding-left: 18px; }
@media (max-width: 700px) {
  .year, .previews, .two { grid-template-columns: 1fr; }
  .grid.big td { height: 56px; }
}
@page { size: letter landscape; margin: 0.4in; }
@media print {
  .site-nav, .site-foot, .no-print { display: none; }
  body { font-size: 10pt; line-height: 1.2; }
  main { max-width: none; padding: 0; }
  h1 { font-size: 16pt; margin: 0 0 6px; }
  a { color: #000; text-decoration: none; }
  th { background: #eee; }
  .grid.big td { height: 0.82in; }
  .notes td { height: 0.45in; }
  .weekly td { height: 0.5in; }
  .sched td, .todo td { height: 0.27in; }
  .lesson tr.h1 td { height: 0.3in; }
  .lesson tr.h2 td { height: 0.42in; }
  .lesson tr.h3 td { height: 0.58in; }
  .year { gap: 6px; }
  .grid.mini td, .grid.mini th { height: 0.2in; font-size: 8pt; }
  .fields td.tall { height: 1in; }
  .holpage .grid.mini td, .holpage .grid.mini th { height: 0.17in; font-size: 7.5pt; }
  .holpage .legend, .holpage .hollist { font-size: 8pt; margin: 3px 0; }
  .holpage h1 { font-size: 14pt; margin: 0 0 4px; }
  .grid td.hol, .grid td.obs { background: #ddd; }
  .hollist li { page-break-inside: avoid; }
  table, tr, td { page-break-inside: avoid; }
}
