/* Print documents for the curriculum platform (student workbook, teacher guide).
   A4, black on white, page breaks between chapters. */

@page {
  size: A4;
  margin: 2cm 1.8cm;

  @bottom-center {
    content: counter(page) " / " counter(pages);
    font-size: 9pt;
    color: #444;
  }
}

@media print {
  .print-document {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }

  .print-document a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .print-chapter {
    break-before: page;
  }

  .print-chapter:first-of-type {
    break-before: auto;
  }

  .print-avoid-break {
    break-inside: avoid;
  }

  .print-notes-lines {
    border-top: none;
  }

  .print-notes-lines li {
    border-bottom: 1px solid #999;
    height: 1.6em;
    list-style: none;
  }
}

/* On-screen preview of the print document stays clean and readable. */
.print-document {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.print-field-line {
  display: inline-block;
  min-width: 10rem;
  border-bottom: 1px solid #666;
}
