/* css/print.css — Print stylesheet for Feature Table */
@media print {
  /* Hide non-content elements */
  custom-navbar, custom-footer, bottom-nav, cookie-consent,
  .ft-nav, .ft-sidebar, .ft-overlay, .skip-link,
  .ft-bell, .ft-cta, .ft-slots, .ft-notif-panel,
  .ft-mobile-tog, .ft-sb-cta,
  share-bar, .share-buttons, .whatsapp-float,
  #ft-sw-toast, #ft-session-banner, #ft-offline-banner,
  .csv-btn, .filter-bar select,
  [onclick], button:not(th button) {
    display: none !important;
  }

  /* Reset colors */
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    margin: 0;
    padding: 0;
  }

  main {
    margin-top: 0 !important;
    min-height: auto !important;
  }

  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
    -webkit-text-fill-color: #000 !important;
  }

  /* Show link URLs */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666 !important;
    font-weight: normal;
  }

  /* Tables */
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  th, td {
    border: 1px solid #ccc !important;
    padding: 4px 8px !important;
    text-align: right !important;
  }
  thead {
    background: #f0f0f0 !important;
  }
  thead * {
    color: #333 !important;
    font-weight: 700 !important;
  }

  /* Cards and sections */
  .t-card, .summary-card, section,
  .podium-card, .glass-card, .electric-card {
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
    margin-bottom: 8pt;
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }
  tr {
    page-break-inside: avoid;
  }

  /* Images */
  img {
    max-width: 100% !important;
    filter: grayscale(100%);
  }

  /* Ensure expanded content is visible */
  .t-breakdown {
    display: block !important;
  }

  @page {
    margin: 1.5cm;
  }
}
