/* ==========================================================================
   Grading US Coins — print styles
   Goal: clean, ink-friendly printouts of lessons and glossary pages.
   Show source citations and expand collapsed advanced sections so the printed
   page is complete. Loaded with media="print".
   ========================================================================== */

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-soft: #333; --border: #999; }

  html { font-size: 12pt; }
  body { background: #fff; color: #000; }

  /* Hide interactive chrome */
  .site-header, .a11y, .audio, .tts, .glossary-controls, .skip-link,
  nav.primary, .site-footer .cols form, button, .no-print { display: none !important; }

  main { padding: 0; }
  .content, .container { width: 100%; }

  /* Expand all collapsible advanced explanations so nothing is lost on paper */
  details { display: block !important; }
  details[open] > summary, details > summary { display: block; font-weight: 700; }
  details > *:not(summary) { display: block !important; }

  /* Print URLs for citations so sources remain useful on paper */
  .sources a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #333; word-break: break-all; }

  a { color: #000; text-decoration: underline; }

  /* Avoid awkward breaks */
  h1, h2, h3, h4 { page-break-after: avoid; }
  .term, .card, .level, figure, table { page-break-inside: avoid; }
  img { max-width: 100% !important; }

  /* Keep verification badges legible in B/W */
  .badge { border: 1px solid #000 !important; color: #000 !important; background: #fff !important; }

  /* Print a small site credit footer */
  .site-footer { display: block; border-top: 1px solid #000; }
  .print-credit::after { content: "Printed from Grading US Coins. Verify current grading standards with PCGS, NGC, or the ANA."; font-size: 9pt; color: #333; }
}
