.lesson-pdf-sheet {
  display: none;
}

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

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

  body > * {
    display: none !important;
  }

  body > .lesson-pdf-sheet {
    display: block !important;
  }

  .lesson-pdf-sheet {
    color: #10263b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .lesson-pdf-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 4px solid #0b8b7c;
  }

  .lesson-pdf-brand {
    color: #eb5a46;
    font-size: 9pt;
    font-weight: 800;
    text-transform: uppercase;
  }

  .lesson-pdf-header h1 {
    margin: 4px 0 0;
    color: #092945;
    font-size: 24pt;
    line-height: 1.08;
  }

  .lesson-pdf-meta {
    display: grid;
    gap: 3px;
    min-width: 175px;
    text-align: right;
  }

  .lesson-pdf-meta strong {
    color: #0b8b7c;
  }

  .lesson-pdf-attendance {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-left: 4px solid #efb42f;
    background: #f7f4e9;
  }

  .lesson-pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
  }

  .lesson-pdf-section {
    break-inside: avoid;
    padding: 11px 12px;
    border: 1px solid #cfdcda;
  }

  .lesson-pdf-section.wide {
    grid-column: 1 / -1;
  }

  .lesson-pdf-section h2 {
    margin: 0 0 5px;
    color: #0b8b7c;
    font-size: 9pt;
    text-transform: uppercase;
  }

  .lesson-pdf-section p {
    margin: 0;
    white-space: pre-wrap;
  }

  .lesson-pdf-section a {
    color: #0a5c8e;
    overflow-wrap: anywhere;
  }

  .lesson-pdf-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .lesson-pdf-photos h2 {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: #0b8b7c;
    font-size: 10pt;
    text-transform: uppercase;
  }

  .lesson-pdf-photos figure {
    break-inside: avoid;
    margin: 0;
    padding: 6px;
    border: 1px solid #cfdcda;
  }

  .lesson-pdf-photos img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
  }

  .lesson-pdf-photos figcaption {
    margin-top: 4px;
    color: #60717f;
    font-size: 8pt;
  }

  .lesson-pdf-footer {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #cfdcda;
    color: #60717f;
    font-size: 8pt;
    text-align: center;
  }
}
