/* Print styles for uafs.edu
   Goal: print the page content, hide site chrome, keep typography clean
*/
@media print {

  /* Page setup */
  @page {
    margin: 0.75in;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.35;
  }
	body{
		padding-top: 0;
	}

  /* Remove visual effects that waste ink */
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    background-image: none !important;
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* Hide common site chrome and interactive UI */
  header,
  nav,
  footer,
  aside,
  form,
  button,
  input,
  select,
  textarea,
  label,
  video,
  audio,
  iframe,
  embed,
  object,
  canvas,
  svg:not([role="img"]),
  [role="navigation"],
  [role="search"],
  [aria-modal="true"],
  .modal,
  .dialog,
  .overlay,
  .cookie,
  .cookie-banner,
  .consent,
  .alert,
  .announcement,
  .site-header,
  .site-footer,
  .skip-link,
  .back-to-top,
  .social,
  .share,
  .breadcrumbs,
  .pagination,
  .tabs,
  .carousel,
  .slider,
  .accordion-controls,
  .print-hidden,
  .no-print,
  .hero-interior,
  .gecko-styles,
  .slider-wrapper,
  .card-carousel-wrapper,
	.slick-slider,
	.image-overlay{
    display: none !important;
  }

  /* If the site uses a cookie notice and modal flow, this prevents printing the overlay */
  body {
    overflow: visible !important;
  }

  /* Try to target the main content area if present */
  main,
  [role="main"],
  .main,
  .main-content,
  .content,
  .page-content,
  #content {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Make sure hidden content does not stay hidden in print */
  .hidden,
  [hidden] {
    display: none !important;
  }

  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
    break-after: avoid-page;
  }

  p, ul, ol, blockquote, table, pre {
    orphans: 3;
    widows: 3;
  }

  /* Images should scale */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Tables */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

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

  /* Links: readable and optionally show URLs */
  a, a:visited {
    color: #000 !important;
    text-decoration: underline !important;
  }

  /* Show full URL for external links only */
  a[href^="http"]:not([href*="uafs.edu"]):after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-word;
  }

  /* Do not print URL noise for anchors and email */
  a[href^="#"]:after,
  a[href^="mailto:"]:after,
  a[href^="tel:"]:after {
    content: "" !important;
  }

  /* Expand common collapsible patterns */
  details {
    display: block !important;
  }
  details > summary {
    display: none !important;
  }

  /* Bootstrap style collapses */
  .collapse,
  .collapsing {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  /* Avoid awkward breaks */
  pre, code, blockquote, tr, img {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
