/* print.css — Print-friendly styles for Rett Forum 2026 */

@media print {
  /* ── Hide non-essential UI ── */
  .nav,
  .footer,
  .skip-nav,
  .cta-section,
  .hero-cta,
  .cta-btn,
  .nav-toggle,
  .nav-lang-slot {
    display: none !important;
  }

  /* ── Reset colours and effects ── */
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Remove gradients on pseudo-elements */
  *::before,
  *::after {
    background-image: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  /* ── Logo: keep colour (remove any invert filter) ── */
  .nav-logo,
  .hero-logo,
  img[alt="Rett Forum"],
  img[alt="Rett Forum 2026"] {
    filter: none !important;
    -webkit-filter: none !important;
  }

  /* ── Links: show URLs ── */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: normal;
    word-break: break-all;
  }

  /* Don't print URLs for in-page/nav links */
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  .nav a::after,
  .nav-links a::after {
    content: none !important;
  }

  /* ── Tier tables: print-friendly ── */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: auto;
  }

  th,
  td {
    border: 1px solid #999 !important;
    padding: 0.4em 0.6em;
    text-align: left;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
  }

  /* Scrollable tier containers: reset for print */
  .tier-table-wrapper,
  .table-wrapper {
    overflow: visible !important;
    max-width: none !important;
  }

  /* ── Page-break hints ── */
  .section,
  .section-alt {
    page-break-before: auto;
    page-break-after: auto;
    page-break-inside: avoid;
  }

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

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
