/* Памятка: шесть самостоятельных листов с той же разметкой для сайта и PDF. */
.handout-intro { margin-bottom: 40px; }
.handout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.handout-print-help, .handout-small { font-size: .86rem; color: var(--ink-soft); }
.handout .slide { margin: 0 0 36px; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.handout .sheet-label { margin: 0 0 12px; font-size: .74rem; font-weight: 650; color: var(--ink-soft); letter-spacing: .025em; }
.handout .slide > h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.handout h3 { margin: 1.2em 0 .5em; font-size: 1.1rem; }
.handout .sheet-lead { color: var(--ink-soft); }
.handout-list { padding-left: 1.3em; }
.handout-list li { margin: .45em 0; padding-left: .15em; }
.handout table th:first-child { width: 25%; }
.handout .note { background: #f7f7f7; border: 1px solid #ccc; border-left: 3px solid #555; }
.handout .handout-sources { font-size: .73rem; color: var(--ink-soft); }
.handout .final-checks { list-style-type: square; }
.handout.mode-deck .handout-intro { display: none; }
.handout.mode-deck .slide { border: 0; padding: 0; margin: 0; background: transparent; }
@media (max-width: 600px) {
  .handout .slide { padding: 18px 14px; }
  .handout .page { padding-left: 14px; padding-right: 14px; }
  .handout table { font-size: .86rem; }
  .handout td, .handout th { padding: 9px 8px; }
}
@page { size: A4 portrait; margin: 14mm 15mm; }
@media print {
  html, body.handout { margin: 0; padding: 0; background: white; color: #000; }
  body.handout { font-family: Arial, "Liberation Sans", sans-serif; font-size: 11pt; line-height: 1.38; }
  .handout main { margin: 0 !important; padding: 0 !important; }
  .handout .page { width: auto; max-width: none; margin: 0; padding: 0 !important; }
  .handout-intro, .handout .pager, .handout .deck-cont { display: none !important; }
  .handout .slide, .handout.mode-deck .slide {
    display: block !important; position: static !important; width: auto !important;
    margin: 0; padding: 0; border: 0; border-radius: 0; background: white;
    box-shadow: none; zoom: 1 !important; transform: none !important;
    break-before: page; page-break-before: always;
  }
  .handout .slide:first-of-type { break-before: auto; page-break-before: auto; }
  .handout .sheet-label { margin: 0 0 4mm; padding-bottom: 2mm; border-bottom: 1px solid #555; font-size: 8pt; color: #333; letter-spacing: 0; }
  .handout h2 { margin: 0 0 3mm; padding: 0; border: 0; font-size: 18pt; line-height: 1.15; color: #000; }
  .handout h3 { margin: 4mm 0 2mm; font-size: 12pt; color: #000; }
  .handout p { margin: 0 0 2.5mm; }
  .handout .sheet-lead { color: #222; }
  .handout .handout-list { margin: 0 0 3mm; padding-left: 5mm; }
  .handout .handout-list li { margin: 0 0 1.8mm; padding-left: .5mm; }
  .handout .tablewrap { overflow: visible; margin: 2mm 0 3mm; }
  .handout table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 10.5pt; line-height: 1.32; }
  .handout th, .handout td { padding: 1.6mm 2.5mm; border: 1px solid #888; vertical-align: top; color: #000; background: transparent !important; overflow-wrap: break-word; }
  .handout th { font-size: 9pt; text-transform: none; letter-spacing: 0; border-bottom: 1.5px solid #222; }
  .handout thead { display: table-header-group; }
  .handout .note { margin: 3mm 0; padding: 2.5mm 3mm; border: 1px solid #777; border-left: 3px solid #333; border-radius: 0; background: transparent; color: #000; }
  .handout .note__title { margin: 0 0 1mm; font-size: 10pt; color: #000; text-transform: none; letter-spacing: 0; }
  .handout .note p:last-child { margin-bottom: 0; }
  .handout .handout-small { font-size: 9pt; color: #222; }
  .handout code { font-size: .93em; color: #000; background: none; padding: 0; overflow-wrap: anywhere; }
  .handout a { color: #000; text-decoration: underline; }
  .handout a[href^="http"]::after { content: none; }
  .handout .handout-sources { margin-top: 3mm; font-size: 8pt; line-height: 1.3; color: #333; }
  .handout h2, .handout h3, .handout .sheet-label { break-after: avoid; page-break-after: avoid; }
  .handout .tablewrap, .handout table, .handout tr, .handout .note, .handout li { break-inside: avoid; page-break-inside: avoid; }
  .handout p { orphans: 3; widows: 3; }
}
