/* =========================
   MNCCC Schedule Print CSS
   ========================= */

@media print {
    
    #mdx_header {border-top: 5px solid #fff;}
    .schedule-tabs > input:checked + label {
    display: inline-block;}
    .schedule-tabs > input {display: none;}
    
  /* ---------------------------------
     Expand all collapsed event details
     --------------------------------- */

  .collapse,
  .accordion-collapse,
  .accordion-content,
  details,
  .event-details,
  .schedule-details,
  .session-details,
  [aria-expanded],
  [hidden] {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  /* Bootstrap-style collapsed sections */
  .collapse:not(.show) {
    display: block !important;
  }

  /* Ensure details elements are open */
  details {
    open: open;
  }

  details > * {
    display: block !important;
  }

  /* Hide accordion toggle buttons/icons */
  .accordion-button,
  .accordion-toggle,
  .collapse-toggle,
  .expand-toggle {
    display: none !important;
  }    

  /* Only apply on the schedule page */
  body {
    background: #fff !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
  }

  /* Remove browser-added URL text */
  @page {
    margin: 0.5in;
  }

  /* ---------------------------------
     Hide navigation / footer / extras
     --------------------------------- */

  nav,
  footer,
  .footer,
  .site-footer,
  .navbar,
  .navigation,
  .menu,
  .tabs,
  .tab-navigation,
  .nav-tabs,
  .sidebar,
  .breadcrumbs,
  .breadcrumb,
  .page-tools,
  .social-links,
  .share-buttons,
  .button,
  .btn,
  .pagination,
  .event-filters,
  .search-form,
  .search,
  .no-print {
    display: none !important;
  }

  /* ---------------------------------
     Keep logo/header visible
     --------------------------------- */

  header,
  .site-header,
  .branding,
  .logo,
  .site-logo {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    margin-bottom: 20px !important;
  }

  .logo img,
  .site-logo img,
  header img {
    max-height: 80px !important;
    width: auto !important;
  }

  /* ---------------------------------
     Show only visible tab content
     --------------------------------- */

  /* Hide all tab panes by default */
  .tab-pane,
  .tabs-panel,
  [role="tabpanel"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Print only the active/visible tab */
  .tab-pane.active,
  .tab-pane.show,
  .tab-pane[style*="display: block"],
  .tabs-panel.is-active,
  [role="tabpanel"][aria-hidden="false"] {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* ---------------------------------
     Clean schedule formatting
     --------------------------------- */

  table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 11pt !important;
  }

  th,
  td {
    border: 1px solid #ccc !important;
    padding: 6px 8px !important;
    vertical-align: top !important;
  }

  tr,
  td,
  th {
    page-break-inside: avoid !important;
  }

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

  /* Remove unnecessary spacing/layout wrappers */
  .container,
  .wrapper,
  .content,
  main,
  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove links showing URLs */
  a[href]:after {
    content: none !important;
  }
}