/**
 * L10 现在完成时 · 出版打印微调
 */

@media print {
  body.handout-continuous.l10-handout .handout-section + .handout-section,
  body.handout-continuous.l10-handout section[id^="sec-"] + section[id^="sec-"],
  body.handout-continuous.l10-handout .handout-tail-group .handout-section {
    break-before: auto !important;
    page-break-before: auto !important;
  }

  body.handout-continuous.l10-handout .handout-section {
    margin: 0 0 3mm !important;
    padding: 0 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.handout-continuous.l10-handout .handout-section > h2.section-title:first-child {
    margin: 3mm 0 2mm !important;
    padding: 0 0 1.2mm !important;
    font-size: 12.2pt !important;
    line-height: 1.25 !important;
    border-bottom-width: 0.5pt !important;
  }

  body.handout-continuous.l10-handout .handout-cover + .handout-section > h2.section-title:first-child {
    margin-top: 0 !important;
  }

  body.handout-continuous.l10-handout .formula-box,
  body.handout-continuous.l10-handout .pitfall,
  body.handout-continuous.l10-handout .warn-strip,
  body.handout-continuous.l10-handout .mirror-box,
  body.handout-continuous.l10-handout .note,
  body.handout-continuous.l10-handout .map-hint {
    margin: 1.4mm 0 2mm !important;
    padding: 1.5mm 2mm !important;
    border-width: 0.5pt !important;
    border-radius: 1.8mm !important;
    font-size: 10.5pt !important;
    line-height: 1.36 !important;
  }

  body.handout-continuous.l10-handout .formula-box {
    gap: 1mm 1.4mm !important;
    font-size: 10.5pt !important;
  }

  body.handout-continuous.l10-handout table.data {
    width: 100% !important;
    table-layout: fixed !important;
    margin: 1.4mm 0 2mm !important;
    font-size: 10.5pt !important;
    line-height: 1.28 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.handout-continuous.l10-handout table.data th,
  body.handout-continuous.l10-handout table.data td {
    padding: 0.8mm 1mm !important;
    border-width: 0.45pt !important;
    vertical-align: top !important;
  }

  body.handout-continuous.l10-handout table.data th:first-child,
  body.handout-continuous.l10-handout table.data td:first-child {
    width: 24% !important;
  }

  body.handout-continuous.l10-handout .stack-cards {
    gap: 2mm !important;
    margin: 1.5mm 0 2mm !important;
  }

  body.handout-continuous.l10-handout .stack-cards .card {
    padding: 2mm 2.2mm !important;
    border-width: 0.5pt !important;
    border-radius: 1.8mm !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.handout-continuous.l10-handout .stack-cards .card > strong {
    display: block !important;
    margin-bottom: 0.8mm !important;
    font-size: 10.5pt !important;
    line-height: 1.25 !important;
  }

  body.handout-continuous.l10-handout .zh-line.card-lead {
    margin: 0 0 1mm !important;
    font-size: 10.5pt !important;
    line-height: 1.34 !important;
  }

  body.handout-continuous.l10-handout .handout-ex-two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.4mm 1.8mm !important;
    margin: 1.2mm 0 2mm !important;
  }

  body.handout-continuous.l10-handout .handout-ex-two-col .ex-pair {
    margin: 0 !important;
    padding: 1.3mm 1.6mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.handout-continuous.l10-handout .en-line,
  body.handout-continuous.l10-handout .zh-line {
    font-size: 10.5pt !important;
    line-height: 1.3 !important;
  }

  body.handout-continuous.l10-handout .zh-line {
    margin-top: 0.7mm !important;
  }

  /* ⑤⑥ 同节同页 */
  body.handout-continuous.l10-handout #sec-5 {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.handout-continuous.l10-handout #sec-5 > h2.section-title--sub {
    margin: 3.5mm 0 2mm !important;
    padding: 0 0 1.2mm !important;
    font-size: 12.2pt !important;
    line-height: 1.25 !important;
    border-bottom: 0.5pt solid rgba(123, 31, 162, 0.25) !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  body.handout-continuous.l10-handout .block-title {
    margin: 2mm 0 1mm !important;
    padding-bottom: 0.8mm !important;
    font-size: 10.5pt !important;
    line-height: 1.25 !important;
    border-bottom-width: 0.5pt !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  body.handout-continuous.l10-handout #sec-6b .handout-ex-two-col {
    gap: 1.1mm 1.6mm !important;
    margin: 1mm 0 1.6mm !important;
  }

  body.handout-continuous.l10-handout #sec-6b .handout-ex-two-col .ex-pair {
    padding: 1.05mm 1.4mm !important;
  }

  body.handout-continuous.l10-handout #sec-6b .en-line,
  body.handout-continuous.l10-handout #sec-6b .zh-line {
    font-size: 9.5pt !important;
    line-height: 1.27 !important;
  }

  body.handout-continuous.l10-handout #sec-8 {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.handout-continuous.l10-handout #sec-8 > h2.section-title:first-child {
    margin-top: 0 !important;
  }

  body.handout-continuous.l10-handout .verb-table-scroll {
    margin: 1.5mm 0 2mm !important;
    overflow: visible !important;
  }

  body.handout-continuous.l10-handout table.verb-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-width: 0.45pt !important;
    font-size: 9.5pt !important;
    line-height: 1.18 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.handout-continuous.l10-handout table.verb-table th,
  body.handout-continuous.l10-handout table.verb-table td {
    padding: 0.72mm 0.8mm !important;
    border-width: 0.35pt !important;
    vertical-align: top !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.handout-continuous.l10-handout table.verb-table th:nth-child(1),
  body.handout-continuous.l10-handout table.verb-table td:nth-child(1) {
    width: 7% !important;
  }

  body.handout-continuous.l10-handout table.verb-table th:nth-child(2),
  body.handout-continuous.l10-handout table.verb-table td:nth-child(2),
  body.handout-continuous.l10-handout table.verb-table th:nth-child(3),
  body.handout-continuous.l10-handout table.verb-table td:nth-child(3) {
    width: 8% !important;
  }

  body.handout-continuous.l10-handout table.verb-table th:nth-child(4),
  body.handout-continuous.l10-handout table.verb-table td:nth-child(4) {
    width: 19% !important;
  }

  body.handout-continuous.l10-handout table.verb-table th:nth-child(5),
  body.handout-continuous.l10-handout table.verb-table td:nth-child(5),
  body.handout-continuous.l10-handout table.verb-table th:nth-child(6),
  body.handout-continuous.l10-handout table.verb-table td:nth-child(6) {
    width: 29% !important;
  }

  body.handout-continuous.l10-handout .col-zh,
  body.handout-continuous.l10-handout .col-en {
    font-size: 9.5pt !important;
    line-height: 1.18 !important;
  }

  body.handout-continuous.l10-handout #sec-9 {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.handout-continuous.l10-handout .write-lines {
    margin: 1.5mm 0 2mm !important;
    padding: 1.6mm 2mm !important;
    border-width: 0.5pt !important;
    border-radius: 1.8mm !important;
  }

  body.handout-continuous.l10-handout .write-lines .prompt {
    margin: 1mm 0 0.4mm !important;
    font-size: 10.5pt !important;
    line-height: 1.3 !important;
  }

  body.handout-continuous.l10-handout .write-lines .rule {
    min-height: 7mm !important;
    margin-bottom: 1mm !important;
    border-bottom-width: 0.5pt !important;
  }

  body.handout-continuous.l10-handout .handout-tail-group,
  body.handout-continuous.l10-handout .handout-tail-group #sec-chant {
    break-before: auto !important;
    page-break-before: auto !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.handout-continuous.l10-handout .handout-chant-block {
    margin-top: 1mm !important;
    padding: 0 !important;
  }

  body.handout-continuous.l10-handout .quote-box.handout-chant-box {
    padding: 2.2mm 3mm !important;
    font-size: 10.5pt !important;
    line-height: 1.55 !important;
  }

  body.handout-continuous.l10-handout .grammar-handout-footer {
    margin: 2mm 0 0 !important;
    font-size: 10.5pt !important;
    break-before: avoid !important;
    page-break-before: avoid !important;
  }
}
