/* CODITECT Press (codipress) print contract — ADR-469 / H.469.
 *
 * GENERATED from the canonical brand spec; do not hand-edit the values here —
 * edit the spec and regenerate:
 *
 *   python3 submodules/core/coditect-core/skills/web-publishing/codipress/gen-css.py \
 *     --spec submodules/core/coditect-core/skills/web-publishing/codipress/coditect-brand-spec.json \
 *     --class investor-brief > public/codipress-print.css
 *
 * Two margin boxes are intentionally omitted from the generated block and are
 * injected at render time by codipress.js, because CSS cannot know them:
 *   @top-right   → "Confidential — <site name>"  (per-site)
 *   @bottom-left → the print date                (per-render)
 * The upstream spec hardcodes a DA8-specific @top-right string; injecting it
 * per-site is what keeps this file site-neutral.
 *
 * documentClass: investor-brief
 */

@media print {
  @page {
    size: A4 portrait;
    margin: 22mm 16mm 16mm 16mm;
    @top-left {
      content: "CODITECT";
      font: 700 9pt Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      color: #0D9488;
    }
    /* @top-right   — injected at render time (per-site confidentiality line) */
    /* @bottom-left — injected at render time (date) */
    @bottom-center {
      content: "CONFIDENTIAL · © 2026 AZ1.AI Inc. · All rights reserved · Hal Casteel, Founder/Chief Architect";
      font: 8pt Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      color: #666;
    }
    @bottom-right {
      content: "Page " counter(page) " of " counter(pages);
      font: 8pt Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      color: #666;
    }
  }

  /* Break discipline from the spec: containers flow, atomic elements stay whole. */
  .card, dl, dd { break-inside: auto !important; page-break-inside: auto !important; }
  .keystone, .pullquote, .stat, .metric-card, figure, .banner, .nav-card, tr, img {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  h1, h2, h3, h4 { break-inside: avoid; }
  p, li { orphans: 3; widows: 3; }

  /* Chrome only — never the reader's own print dialog (ADR-469 anti-pattern). */
  .site-header__actions, .theme-toggle, .codipress-pdf, .site-nav { display: none !important; }
}
