/* Printable pages: readable on screen, a few sheets on paper. */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.5;
}
main { max-width: 44rem; margin: 0 auto; padding: 16px; }
h1 { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.8rem; margin: 0.4rem 0 0.5rem; }
.back { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.back a { color: #333; }
.back button { font: inherit; padding: 0.4rem 0.9rem; border: 1px solid #333; border-radius: 999px; background: #fff; cursor: pointer; }
.intro { color: #333; }
.days { list-style: none; padding: 0; margin: 0; }
.day { border-top: 1px solid #bbb; padding: 0.7rem 0 0.4rem; break-inside: avoid; page-break-inside: avoid; }
.day p { margin: 0 0 0.25rem; }
.q { font-weight: 600; }
.n { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; color: #555; margin-right: 0.4rem; }
.f, .t { font-size: 0.95em; }
.t { color: #444; }
.lines {
  height: 5.2rem;
  margin-top: 0.4rem;
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #bbb calc(100% - 1px));
  background-size: 100% 1.7rem;
}
.credit, .foot { font-size: 0.8rem; color: #555; overflow-wrap: anywhere; }

@page { margin: 14mm 14mm; }
@media print {
  body { font-size: 11pt; }
  main { max-width: none; padding: 0; }
  .back { display: none; }
  h1 { font-size: 16pt; }
  .day { padding: 5pt 0 2pt; }
  .lines {
    height: 54pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background-image: linear-gradient(to bottom, transparent calc(100% - 0.75pt), #888 calc(100% - 0.75pt));
    background-size: 100% 18pt;
  }
}
