.card-print-options { min-width:0; border:1px solid #8a998b; border-radius:4px; padding:8px; font-size:.9rem; }
.card-print-options[hidden],[data-card-print][hidden] { display:none!important; }
.card-print-options>summary { cursor:pointer; min-height:44px; display:list-item; padding:8px 2px; }
.card-print-options label { display:block; margin:8px 0; }
.card-print-options select { width:100%; min-width:0; min-height:44px; font:inherit; padding:8px 4px; color:#183e38; background:#fffdf7; }
.card-print-options .card-print-binder { display:flex; gap:8px; align-items:center; min-height:44px; }
.card-print-binder input { flex:0 0 auto; width:20px; height:20px; }
.card-print-options p { font-size:.85rem; line-height:1.5; margin:8px 0; }
.card-print-options :focus-visible,[data-card-print]:focus-visible { outline:3px solid #355e4d; outline-offset:3px; }
.card-print-provenance { margin:24px 0; padding-top:12px; border-top:1px solid #b8beb7; font-size:.85rem; overflow-wrap:anywhere; }
.card-print-provenance p { margin:4px 0; }
.card-print-punch-guides { display:none; }
@media print {
  /* Letter 279.4mm tall: target centers 31.7,139.7,247.7mm from top,
     9.5mm from left. The fixed containing block begins at the page content
     origin (5mm left,17mm top). Body adds 23mm to retain the 28mm content gutter.
     Targets stay inside the page area, never at a clipped negative offset.
     The 8mm SVG is centered 4mm into its box.
     Physical output must be checked for margin clipping and printer scaling. */
  body.journal-entry[data-card-print-punch-guides] {
    box-sizing:border-box;
    width:auto!important;
    max-width:none!important;
    margin:0 0 0 23mm!important;
    padding:0!important;
  }
  body.journal-entry[data-card-print-punch-guides] > .card-print-punch-guides {
    display:block!important;
    position:fixed;
    left:0.5mm;
    top:10.7mm;
    width:8mm!important;
    height:224mm!important;
    max-width:none!important;
    overflow:visible;
    margin:0!important;
    padding:0!important;
    border:0!important;
    pointer-events:none;
  }
  @page thn-reference { size:auto; margin:17mm; }
  @page thn-binder { size:auto; margin:17mm 17mm 17mm 28mm; }
  body.journal-entry { page:thn-reference; }
  body.journal-entry[data-card-print-binder] { page:thn-binder; }
  body.journal-entry .card-print-options,body.journal-entry [data-card-print] { display:none!important; }
  body.journal-entry[data-card-print-style="essential"],
  body.journal-entry[data-card-print-style="essential"] * { background-image:none!important; background-color:#fff!important; color:#111!important; box-shadow:none!important; text-shadow:none!important; }
  /* Hide only decorative art. Study photographs and their captions stay. */
  body.journal-entry[data-card-print-style="essential"] .specimen-art,
  body.journal-entry[data-card-print-style="essential"] .section-sprig { display:none!important; }
  body.journal-entry[data-card-print-style="decorative"] .specimen-art { display:block!important; break-inside:avoid; }
  body.journal-entry[data-card-print-style="decorative"] .section-sprig { display:block!important; width:90pt; height:25pt; object-fit:contain; }
  body.journal-entry .card-print-provenance { display:block!important; break-inside:avoid; font-size:8.5pt; color:#111; }
  body.journal-entry :is(h1,h2,h3,h4,summary) { break-after:avoid; }
  body.journal-entry :is(p,li) { orphans:2; widows:2; }
  /* Card 035 proof only. Keep content, art, type sizes and screen layout intact. */
  body.journal-entry[data-card-print-proof="flow-035"] :is(.quick-cautions,.entry-cautions) {
    break-inside:auto;
    page-break-inside:auto;
  }
  body.journal-entry[data-card-print-proof="flow-035"] .reading-paper .language-section .terms {
    display:block;
  }
  /* Use the document-local unnamed @page selected by card-print.js. */
  body.journal-entry[data-card-print-proof="flow-035"] { page:auto; }
  /* A heading's break-after protects its own boundary, not every intervening
     wrapper/label boundary. Keep the start of the following block attached,
     including list and term-card starts; allow their remaining text to flow. */
  body.journal-entry[data-card-print-proof="flow-035"] :is(h2,h3,h4,.journal-section-heading) + *,
  body.journal-entry[data-card-print-proof="flow-035"] .bible-connection-kind + *,
  body.journal-entry[data-card-print-proof="flow-035"] :is(h2,h3,h4,.journal-section-heading) + :is(ul,ol,.terms) > :first-child {
    break-before:avoid;
    page-break-before:avoid;
  }
  body.journal-entry[data-card-print-proof="flow-035"] .journal-section-heading {
    break-inside:avoid;
    page-break-inside:avoid;
  }
  /* A term card includes bibliography disclosures and can exceed a page.
     Keeping that entire card together competes with its preceding heading. */
  body.journal-entry[data-card-print-proof="flow-035"] .language-section .term {
    break-inside:auto;
    page-break-inside:auto;
  }
}

/* The generated 035 openers add no screen boxes. Preserve the few existing
   direct-child style contracts across this otherwise transparent wrapper. */
.card-print-opener { display:contents; }
.reading-preview :is(.full-entry-body,.entry-cautions)>.card-print-opener:first-child>h3:first-child { margin-top:0; }
.heritage-use-list>li>:where(.card-print-opener)>strong { font-size:1rem; line-height:1.5; }
.heritage-use-list>li>:where(.card-print-opener)>p { margin:7px 0 9px; }
@media print {
  body.journal-entry[data-card-print-proof="flow-035"] .card-print-opener {
    display:flow-root;
    break-inside:avoid;
    page-break-inside:avoid;
  }
}

/* Peppermint publication pilot: no content grouping wrappers or list reparenting. */
@media print {
  body.journal-entry[data-card-print-proof="flow-035"] .journal-specimen h1 { font-family:Georgia,serif; font-size:28pt; line-height:1.12; margin:0 0 10pt; }
  body.journal-entry[data-card-print-proof="flow-035"] .journal-facts { padding:8pt 0; }
  body.journal-entry[data-card-print-proof="flow-035"] :is(.journal-summary p,.reading-paper p,.reading-paper li) { font-family:Georgia,serif; }
  body.journal-entry[data-card-print-proof="flow-035"] .reading-paper :is(h2,h3,h4) { font-family:Georgia,serif; font-weight:600; line-height:1.2; }
  body.journal-entry[data-card-print-proof="flow-035"] .reading-paper h2 { font-size:18pt; }
  body.journal-entry[data-card-print-proof="flow-035"] .reading-paper h3 { font-size:14pt; }
  body.journal-entry[data-card-print-proof="flow-035"] .reading-paper h4 { font-size:12pt; }
  /* Carry the existing short label chain into the first prose lines. Never keep
     an entire use, caution list, or multi-page evidence disclosure together. */
  body.journal-entry[data-card-print-proof="flow-035"] .heritage-use-list>li>strong { display:block; break-after:avoid; page-break-after:avoid; }
  body.journal-entry[data-card-print-proof="flow-035"] :is(.heritage-use-list>li>.evidence-help,.heritage-use-list>li>.evidence-help>:last-child,.bible-connection-kind) { break-after:avoid; page-break-after:avoid; }
  body.journal-entry[data-card-print-proof="flow-035"] :is(.bible-connection,.bible-connection>:first-child,.bible-connection-kind,.heritage-use-list>li>.evidence-help,.heritage-use-list>li>.evidence-help+p) { break-before:avoid; page-break-before:avoid; }
  body.journal-entry[data-card-print-proof="flow-035"] .reading-paper .educational-note { break-inside:auto; }
}

/* The peppermint bibliography prints each destination once; citations stay nearby. */
body.journal-entry .peppermint-citation { font:.9rem/1.5 Arial,sans-serif; margin:8px 0; }
body.journal-entry .peppermint-bibliography li { margin-bottom:12px; overflow-wrap:anywhere; }
body.journal-entry .peppermint-bibliography .source-aliases { display:block; font-size:.9em; }
body.journal-entry .peppermint-bibliography .source-url { display:none; }
@media print {
 body.journal-entry[data-card-print-proof="flow-035"] .peppermint-citation { font-size:9pt; }
 body.journal-entry[data-card-print-proof="flow-035"] .peppermint-bibliography li { break-inside:avoid; }
 body.journal-entry[data-card-print-proof="flow-035"] .source-url { display:block; font:9pt/1.4 Arial,sans-serif; overflow-wrap:anywhere; }
}

/* v133: one short heading chain, not the inactive blanket opener experiment. */
.peppermint-identity-intro { display:contents; }
@media print {
  /* Later reading-theme screen spacing otherwise restores a 36px heading gap. */
  body.journal-entry[data-card-print-proof="flow-035"] #entry-35 .journal-section-heading {
    margin:0;
    padding:0;
    border:0;
  }
  body.journal-entry[data-card-print-proof="flow-035"] .peppermint-identity-intro { display:block; }
  /* Six measured short blocks only. Never keep the whole detailed reference,
     heritage list, generic disclosure, or any multi-page section together. */
  body.journal-entry[data-card-print-proof="flow-035"] :is(
    .health-journal-cautions,
    #scripture-35,
    #history .heritage-use-list>li[data-print-keep="confectionery"],
    #health-topic-evidence>.health-journal-note,
    .peppermint-identity-intro,
    .reading-paper .educational-note
  ) {
    break-inside:avoid;
    page-break-inside:avoid;
  }
}
