/* ─────────────────────────────────────────────────────────────────────────────
   Diamond Equity Investments — Chicago · print lane

   Loaded AFTER web.css. The print lane is the same blocks on paper: US Letter,
   0.6in margins, a running footer, and hard rules about what may not split
   across a page. Print to PDF from any browser and it comes out right.

   Grows to as many pages as the content needs — that is the point. Drop a
   `de-pagebreak` block wherever a break must be forced.
   ────────────────────────────────────────────────────────────────────────── */

@page {
  size: letter;
  margin: 0.6in;
}

/* On screen the print lane previews as a stack of sheets so you can see the
   pagination before you print. */
.de-sheet {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto var(--sp-6);
  padding: 0.6in;
  background: var(--t-slip);
  border: 1px solid var(--t-line);
}

.de-doc--print { background-image: none; background-color: var(--t-surface-2); }
.de-doc--print .de-block { padding-inline: 0; padding-block: var(--sp-6); }
.de-doc--print .de-shell { max-width: none; }

@media print {
  .de-doc--print { background: #fff; }
  /* On paper the sheet is a passive wrapper: @page owns the margins and the
     browser owns the pagination. Forcing a break here would fight the flow —
     use a `long-pagebreak` block wherever a break is actually wanted. */
  .de-sheet {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  /* Backgrounds and hairlines are the design; without this they vanish. */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Nothing that reads as one object may be split down the middle. */
  .de-property__card,
  .de-guarantee__slip,
  .de-testimonial__grid,
  .de-manager__grid,
  .de-stats__item,
  .de-faq__item,
  .de-steps__list li,
  .de-quote,
  .de-ba__pair { break-inside: avoid; page-break-inside: avoid; }

  .de-h1, .de-h2, .de-h3 { break-after: avoid; page-break-after: avoid; }

  /* Links print as text plus their destination — a printed page has no hover. */
  .de-doc--print a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--font-mono);
    font-size: 0.7em;
    color: var(--t-meta);
    word-break: break-all;
  }
  .de-btn::after { content: none !important; }
  .de-btn {
    background: transparent;
    color: var(--t-accent);
    border: 1px solid var(--t-accent);
  }

  .de-no-print { display: none !important; }
}
