/**
 * L07 比较级与最高级 · 出版打印微调
 */

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

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

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

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

  body.handout-continuous.l07-handout .tap-card,
  body.handout-continuous.l07-handout .mind-wrap,
  body.handout-continuous.l07-handout .adv-block:not(.handout-chant-block),
  body.handout-continuous.l07-handout .mirror-box {
    margin: 0 0 2mm !important;
    padding: 2mm 2.4mm !important;
    border-width: 0.5pt !important;
    border-radius: 1.8mm !important;
  }

  body.handout-continuous.l07-handout .mind-pillars {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2mm !important;
  }

  body.handout-continuous.l07-handout .mind-pillar {
    padding: 2mm 1.6mm !important;
    font-size: 10.5pt !important;
    line-height: 1.38 !important;
    border-width: 0.5pt !important;
  }

  body.handout-continuous.l07-handout .mind-pillar strong {
    margin-bottom: 0.6mm !important;
  }

  body.handout-continuous.l07-handout .map-hint,
  body.handout-continuous.l07-handout .mini-note,
  body.handout-continuous.l07-handout .adv-block ul {
    font-size: 10.5pt !important;
    line-height: 1.42 !important;
  }

  body.handout-continuous.l07-handout .warn-strip {
    margin: 1.4mm 0 2mm !important;
    padding: 1.6mm 2.2mm !important;
    font-size: 10.5pt !important;
    line-height: 1.42 !important;
    border-left-width: 1.2mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.handout-continuous.l07-handout .block-title {
    margin: 2.4mm 0 1.4mm !important;
    font-size: 10.5pt !important;
    line-height: 1.25 !important;
  }

  body.handout-continuous.l07-handout .l07-pitfall-title,
  body.handout-continuous.l07-handout #sec-5 {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.handout-continuous.l07-handout .l07-pitfall-title {
    margin-top: 0 !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  body.handout-continuous.l07-handout #sec-5 > h2.section-title:first-child {
    margin-top: 0 !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

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

  body.handout-continuous.l07-handout table.data {
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 10.5pt !important;
    line-height: 1.24 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.handout-continuous.l07-handout table.data th,
  body.handout-continuous.l07-handout table.data td {
    padding: 0.75mm 1mm !important;
    vertical-align: top !important;
  }

  body.handout-continuous.l07-handout #sec-2 table.data th:nth-child(1),
  body.handout-continuous.l07-handout #sec-2 table.data td:nth-child(1) {
    width: 7% !important;
  }

  body.handout-continuous.l07-handout #sec-2 table.data th:nth-child(2),
  body.handout-continuous.l07-handout #sec-2 table.data td:nth-child(2) {
    width: 16% !important;
  }

  body.handout-continuous.l07-handout #sec-2 table.data th:nth-child(3),
  body.handout-continuous.l07-handout #sec-2 table.data td:nth-child(3),
  body.handout-continuous.l07-handout #sec-2 table.data th:nth-child(4),
  body.handout-continuous.l07-handout #sec-2 table.data td:nth-child(4),
  body.handout-continuous.l07-handout #sec-2 table.data th:nth-child(5),
  body.handout-continuous.l07-handout #sec-2 table.data td:nth-child(5) {
    width: 18% !important;
  }

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

  body.handout-continuous.l07-handout .handout-ex-two-col .ex-pair {
    margin: 0 !important;
    padding: 1.5mm 1.8mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

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

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

  body.handout-continuous.l07-handout .adv-block h3 {
    margin: 0 0 1.2mm !important;
    font-size: 10.5pt !important;
    line-height: 1.25 !important;
  }

  body.handout-continuous.l07-handout .adv-block ul {
    margin: 1mm 0 0 !important;
    padding-left: 4.2mm !important;
  }

  body.handout-continuous.l07-handout .handout-tail-group,
  body.handout-continuous.l07-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.l07-handout .handout-chant-block {
    margin-top: 1mm !important;
    padding: 0 !important;
  }

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

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