p.worksheet-hint {
  color: var(--sp-muted);
  font-size: 0.875em;
}

.worksheet-source {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
  }

  body > header,
  body > footer,
  .skip,
  .breadcrumbs,
  .worksheet-hint,
  .worked-board ~ p:not(.worksheet-source),
  .worked-board ~ details,
  .worked-board ~ h2,
  .blank-mark {
    display: none !important;
  }

  .lesson-layout,
  .lesson-article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .lesson-article {
    font-size: 11pt;
    line-height: 1.5;
  }

  .lesson-article h1 {
    margin: 0 0 2mm;
    font-size: 23pt;
    letter-spacing: normal;
  }

  .lesson-article h2 {
    margin: 5mm 0 2mm;
    font-size: 14pt;
  }

  .lesson-article p,
  .lesson-byline {
    margin: 2mm 0;
  }

  .lesson-byline,
  .worked-board figcaption {
    color: #000;
    font-size: 10pt;
  }

  .worked-board {
    max-width: 142mm;
    margin: 4mm auto;
    break-inside: avoid;
  }

  .worked-board td,
  .worked-board th {
    height: 12mm;
    border-color: #000;
    background: white !important;
    color: #000 !important;
  }

  .worked-board td {
    font-size: 16pt;
  }

  .worked-board .focus-cell {
    outline: 1px dashed #000;
    outline-offset: -4px;
  }

  .worksheet-source {
    display: block;
    padding-top: 3mm;
    border-top: 1px solid #000;
    font-size: 9pt;
    break-inside: avoid;
  }

  .worksheet-source a {
    color: #000;
    text-decoration: none;
  }

  .worksheet-source a::after {
    content: "  " attr(href);
    display: block;
    overflow-wrap: anywhere;
  }
}
