/* ═══════════════════════════════════════════════════════════
   OMATICON CORPORATION — Print Stylesheet
   Enqueued with media="print" via functions.php
═══════════════════════════════════════════════════════════ */

@media print {

  /* ── Reset for print ──────────────────────────────── */
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* ── Hide non-essential elements ─────────────────── */
  .site-header,
  .site-footer,
  .nav-toggle,
  .nav-links,
  .hero-grid-bg,
  .hero-glow,
  .marquee-strip,
  .cta-banner,
  .related-posts-section,
  .blog-sidebar,
  .product-sidebar,
  .post-navigation,
  .pagination,
  .comment-form,
  .widget-cta-mini,
  .copy-code-btn,
  .status-refresh-btn,
  .product-hero-actions .btn-ghost,
  .breadcrumb,
  button,
  [aria-hidden="true"] { display: none !important; }

  /* ── Page setup ───────────────────────────────────── */
  @page {
    margin: 2cm 2.5cm;
    size: A4 portrait;
  }

  body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #000;
  }

  /* ── Typography ───────────────────────────────────── */
  h1, h2, h3, h4, h5, h6 {
    font-family: Helvetica, Arial, sans-serif;
    page-break-after: avoid;
    orphans: 3;
    widows: 3;
  }
  h1 { font-size: 20pt; margin-bottom: 12pt; }
  h2 { font-size: 16pt; margin-top: 18pt; margin-bottom: 8pt; }
  h3 { font-size: 13pt; margin-top: 14pt; margin-bottom: 6pt; }

  p, li { orphans: 3; widows: 3; }

  /* ── Links ────────────────────────────────────────── */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: .75em;
    color: #555 !important;
    word-break: break-all;
  }
  a[href^="#"]::after,
  a[href^="javascript:"]::after { content: ""; }

  /* ── Images ───────────────────────────────────────── */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  .product-svg, .about-diagram-svg { max-width: 480pt; }
  .card-illustration { max-height: 200pt; overflow: hidden; }

  /* ── Code blocks ──────────────────────────────────── */
  pre, code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 9pt;
    border: 1pt solid #ccc;
    padding: 6pt 8pt;
    page-break-inside: avoid;
  }
  pre { white-space: pre-wrap; word-wrap: break-word; }

  /* ── Tables ───────────────────────────────────────── */
  table { border-collapse: collapse; width: 100%; page-break-inside: avoid; }
  th, td { border: 1pt solid #999; padding: 4pt 6pt; font-size: 9.5pt; }
  th { font-weight: bold; background: #f0f0f0 !important; color: #000 !important; }

  /* ── Status table ─────────────────────────────────── */
  .status-table { font-size: 9pt; }
  .status-badge::before { content: "["; }
  .status-badge::after  { content: "]"; }

  /* ── Product page ─────────────────────────────────── */
  .product-layout { display: block; }
  .product-hero-layout { display: block; }
  .product-hero-illustration { display: none; }
  .product-features-grid { display: block; columns: 2; }
  .product-feature-item { break-inside: avoid; }

  /* ── Blog post ────────────────────────────────────── */
  .post-layout   { display: block; }
  .author-card   { border: 1pt solid #ccc; padding: 8pt; margin: 12pt 0; }
  .author-avatar { display: none; }

  /* ── Press release ────────────────────────────────── */
  .press-boilerplate { border-top: 1pt solid #ccc; padding-top: 8pt; margin-top: 18pt; }
  .press-boilerplate::before {
    content: "###";
    display: block;
    text-align: center;
    font-size: 14pt;
    margin-bottom: 8pt;
  }

  /* ── Breadcrumb (useful in print) ─────────────────── */
  .breadcrumb { font-size: 8.5pt; color: #666 !important; margin-bottom: 8pt; }

  /* ── Post meta ────────────────────────────────────── */
  .post-meta { font-size: 9pt; color: #555 !important; margin: 6pt 0 12pt; }

  /* ── Print-only footer ────────────────────────────── */
  body::after {
    content: "Omaticon Corporation — omaticon.com";
    display: block;
    text-align: center;
    font-size: 8pt;
    color: #999 !important;
    margin-top: 24pt;
    border-top: 1pt solid #ccc;
    padding-top: 6pt;
  }
}
