/* Impression : texte noir sur blanc, sans en-tête, menus, boutons ni décor.
   « Imprimer » dans « Ma liste » (wiki.js) ajoute body.print-pins : seule la liste est imprimée. */

@page { margin: 1.5cm; }

html, body { background: #fff !important; color: #000 !important; }
body::before, body::after,
.skip-link, .scroll-progress, .site-header, .unofficial, .fab-stack, .toasts, dialog, .link-start,
.mc-zoom, .bench-3d, .bench-strip, .search, .hud-settings, .recipe-actions, .btn, .scroll-hint, .tabs,
.footer-cols, .loader, .preview, .ip-box button, .pins-close, .pins-qty button, .pins-remove { display: none !important; }

* { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important;
    backdrop-filter: none !important; clip-path: none !important; animation: none !important; }
.slot { background: #eee !important; }
.lore { background: #f3f3f3 !important; border: 1px solid #999; }
.card, .sao-window, .portal, .callout, .faq details, .notice { border: 1px solid #999 !important; break-inside: avoid; }
.panel[hidden] { display: block !important; }               /* page launcher : tous les onglets */
.faq details > p { display: block !important; }
h1, h2, h3 { break-after: avoid; }
h2::before { display: none !important; }
a { text-decoration: underline; }
/* adresse des liens vers d'autres sites, utile sur papier */
main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
.site-footer { margin-top: 1.5rem; padding: 1rem 0 0 !important; border-top: 1px solid #999; }
.mc-frame { padding: 0 !important; }
.pins-panel { display: none !important; }

/* « Ma liste » seule */
body.print-pins > *:not(.pins-panel) { display: none !important; }
body.print-pins .pins-panel {
  display: block !important;
  position: static !important;
  width: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
  opacity: 1 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.print-pins .pins-panel input { border: 0 !important; width: auto !important; font-weight: 700; }
