/* Tools Elite — print stylesheet (Phase 1, 21 Nov 2026).
 *
 * Loaded with media="print" from tools/show.blade.php. The browser's
 * Print -> Save as PDF produces a clean branded result report: tool
 * name, inputs, result, date and a toolselite.com footer. No PDF
 * library is involved.
 *
 * Screen styles for the toolbar / history panel live in the shared
 * module itself (public/js/te-shared.js injects them), so this file
 * only ever affects the printed page.
 */

@page {
  margin: 16mm 14mm;
}

@media print {
  /* Site chrome: hidden. */
  header, footer, nav, .te-header, .te-footer, .te-nav, .te-crumbs,
  .te-related, .te-fav-btn, .te-share-toolbar, .te-history,
  .te-cookie-banner, .te-search, .te-theme-toggle,
  .gl-push, .te-push-prompt, button[type="submit"] {
    display: none !important;
  }

  /* The page itself: light, full width, no dark-mode colours. */
  html, body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .te-wrap-narrow, .te-page, .te-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* The tool block: keep the results together where possible. */
  .te-tool {
    break-inside: avoid;
  }

  /* Form controls print their values; hide the interactive chrome
     inside the tool that means nothing on paper. */
  .te-tool button, .te-tool input[type="submit"] {
    display: none !important;
  }

  /* Charts print as they render on screen. */
  .te-chart-wrap {
    break-inside: avoid;
    height: 240px !important;
  }

  /* Branded footer, filled by te-shared.js on beforeprint. */
  .te-print-footer {
    display: block !important;
    margin-top: 24px;
    padding-top: 10px;
    border-top: 2px solid #111111;
    font-size: 11pt;
    font-weight: 600;
    color: #111111;
  }

  /* Links print their URLs only where useful (flow links). */
  a[href]::after {
    content: none !important;
  }
}
