/* Impresión: teoría y contenido principal sin chrome de app */
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html {
    scrollbar-gutter: auto;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Portada */
  .hd {
    box-shadow: none !important;
    border-bottom: 1px solid #ccc !important;
    background: #fff !important;
    color: #111 !important;
    position: static !important;
  }
  .hd .thm-btn,
  .hd .logo-link {
    color: #111 !important;
  }
  .hero {
    padding: 24px 20px !important;
    border-bottom: 1px solid #ddd !important;
  }
  .main .card.av:hover,
  .main .card.av:focus-within {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Cursos: layout completo */
  .skip-link,
  .sr-only,
  #srLive,
  .hbg-btn,
  .srch-btn,
  .thm-btn,
  .hr .spill,
  .sb,
  .sb-overlay,
  .sb-overlay.open,
  #sbOverlay,
  .mts,
  .mts-in,
  .simbtn,
  .btn.bs[style*='Resetear'],
  .pct,
  .pst,
  .ses-bar,
  .theory-actions,
  .fc-nav,
  .fc-actions,
  .fc-kbhint,
  .fc-status button,
  .nxt,
  .exhd ~ .exc ~ .exnv,
  .exnv,
  .qdts,
  .exprg .pbw,
  .site-footer,
  .site-footer__meta,
  .srch-over,
  #srchOver,
  #helpOver,
  script {
    display: none !important;
  }

  .ly {
    display: block !important;
    height: auto !important;
  }

  .mn {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .mn-body,
  .cnt {
    overflow: visible !important;
    max-height: none !important;
  }

  #mainArea {
    overflow: visible !important;
  }

  .th-layout {
    display: block !important;
  }

  .th-content {
    max-width: none !important;
  }

  .toc-nav {
    break-inside: avoid;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 16px;
    page-break-after: avoid;
  }

  .thc,
  .thgr section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .landing-col-acc {
    display: block !important;
  }
  .landing-col-acc > summary.shd::before {
    display: none !important;
  }
}
