/*
    PROJECT:    Foundation360 Print Engine
    PURPOSE:    Universal continuous-flow and pagination rules for all physical
                artifacts. Updated for the Bioluminescence theme.
    CATEGORY:   Print Styles
    AUTHOR:     Zaphyr Zur Pomicpic
    VERSION:    3.0.0
    CREATED:    2026-05-01
*/

@media print {
  .no-print,
  .navbar,
  .arch-header,
  #tab-controls,
  .controls-wrapper,
  .footer-links,
  .top-header {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: 'Inter', 'Georgia', serif;
    font-size: 11pt;
    line-height: 1.5;
  }

  @page {
    margin: 0.75in;
    size: letter;
  }

  .lease-container,
  .page-container,
  .email-container {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #ffffff !important;
  }

  .lease-document {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }

  /* Remove all glassmorphism effects */
  .data-card,
  .domain-header,
  .executive-summary,
  .handoff-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  /* Bind headers to subsequent content */
  h1, h2, h3, h4, h5, h6,
  .part-title, .section-title {
    break-after: avoid;
    page-break-after: avoid;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Protect UI blocks from splitting */
  .highlight-box,
  .custom-table, tr, td, th, li,
  .data-card, .key-provisions-summary {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Ensure large text blocks flow naturally */
  section, p, ul, ol, table {
    break-inside: auto;
    page-break-inside: auto;
  }

  .addendum { page-break-before: always; }

  a { color: #000000 !important; text-decoration: underline; }

  .badge {
    border: 1px solid #999 !important;
    background: #f0f0f0 !important;
    color: #333 !important;
  }

  #explorer-canvas {
    padding: 20px 0 !important;
  }
}