/* ============================================================================
   CODEX MERIDIAN — print.css
   A NAMED deliverable: every page prints as a counsel-ready document.
   Margins, running heads, no dark blocks except the framed Invocation Plate.
   ============================================================================ */

@page {
  margin: 22mm 18mm;
}

html, body {
  background: #ffffff !important;
  background-image: none !important;
  color: #201812;
  font-size: 11.5pt;
  line-height: 1.55;
}

/* Interactive chrome disappears from the record. */
.skip-link,
.still-toggle,
.contents,
.register-form,
.press-panel,
.return-stamp,
.stamp,
.sabbath-note {
  display: none !important;
}

/* Running head prints as a document header on the first sheet. */
.running-head { border-bottom: 2pt solid #201812; }
.running-head-row, .status-line { padding-left: 0; padding-right: 0; }

/* Folios flow as sections with modest spacing; keep rules. */
.folio { padding: 18pt 0; border-bottom: 0.5pt solid #B9AC90; break-inside: auto; }
.folio--vellum { background: #ffffff; }
.folio-inner { display: block; padding: 0; max-width: none; }
.folio-text { max-width: none; }
.folio-rail { display: none; }

.headline, .plate, .notice, .ledger caption { break-after: avoid; }
.plate, .notice, .ledger tr, .register li, .footnote { break-inside: avoid; }

/* The ONE sanctioned dark block. */
.plate--invocation {
  background: #241A10 !important;
  color: #F3E9D2 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.plate--invocation .scripture { color: #F3E9D2 !important; }

/* Gold survives print as flat leaf. */
.has-cap::first-letter,
.station-lozenge,
.lozenge-list li::before,
.stamp--gilt {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Blind emboss cannot print — fall back to quiet ink. */
.plate--emboss .emboss-text {
  color: #4A3F33;
  text-shadow: none;
}

/* Hatch prints as hatch (it is the record of the not-yet). */
.hatch {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Links: ink, underlined; no URL dumps (this is collateral, not a webliography). */
a { color: #201812; }

/* Ledgers print with full rules. */
.ledger, .ledger th, .ledger td { border-color: #B9AC90; }
.ledger thead th { background: #EDE3CB !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Colophon closes the document. */
.colophon { background: #ffffff; border-top: 2pt solid #201812; }
