/* PRINT: Clean, readable output
   =========================== */

/* Base adjustments */
@media print {
  /* Typography */
  html, body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact; /* best effort */
    print-color-adjust: exact;
    font-size: 12pt;       /* comfortable reading size */
    line-height: 1.35;     /* slightly tighter than screen */
  }

  /* Remove screen-only chrome */
  #logodiv,
  #menubar,
  #site-footer .footer-accent,
  #site-footer .footer-grid,
  #back2top,
  #back2top-inline { display: none !important; }

  /* Layout: flatten to single column */
  #layoutwrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
    background: none !important;
  }
  #leftcolumn,
  #maincontent,
  #rightcolumn {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    top: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 12pt 0 !important;
  }

  /* Headings and paragraphs */
  h1, h2, h3, h4, h5 {
    color: #000 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  h1 { font-size: 20pt; margin: 0 0 8pt; border: 0 !important; }
  h2 { font-size: 16pt; margin: 14pt 0 6pt; }
  h3 { font-size: 14pt; margin: 12pt 0 6pt; }
  h4 { font-size: 12pt; margin: 10pt 0 6pt; }
  p   { margin: 8pt 0; line-height: 1.35; }

  /* Content lists */
  ul, ol { margin: 0 0 10pt 18pt !important; }
  li { margin: 0 0 4pt 0; }

  /* Links: show URLs inline for clarity */
  a[href] {
    color: #000 !important;
    text-decoration: underline !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }
  /* Suppress data URI noise */
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Tables: keep borders, ensure fit */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 8pt 0;
  }
  th, td {
    border: 1pt solid #aaa !important;
    padding: 4pt 6pt !important;
  }
  th { background: #eee !important; /* light gray header in print */
  }

  /* Images: print-friendly */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }
  /* Decorative images inside footer/content boxes can be hidden if needed */
  .footer-usage-img { display: none !important; }

  /* Boxes: remove heavy backgrounds for print economy */
  .MissouriRedbox,
  .MissouriBluebox,
  .widget-header {
    background: none !important;
    color: #000 !important;
    border: 1pt solid #999 !important;
    padding: 6pt !important;
  }

  /* Dropcaps: revert to inline for print */
  span.dropcap,
  .dropcap-small {
    float: none !important;
    font-size: 1em !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: inline !important;
  }

  /* Footer: keep copyright text only, no backgrounds/borders */
  #site-footer {
    background: none !important;
    color: #000 !important;
    border: 0 !important;
  }
  #site-footer #copyright {
    text-align: left !important;
    background: none !important;
    padding: 0 !important;
    border: 0 !important;
    margin-top: 12pt !important;
  }

  /* Page breaks: keep sections together sensibly */
  .rc-columns,
  .widget,
  .card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Remove any remaining shadows/outlines */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}
