/* Print only -- loaded with media="print" (§5.8). Black text on white,
   regardless of the theme the page was viewed in on screen. */

@media print {
  * {
    background: none !important;
    box-shadow: none !important;
    color: #000 !important;
    border-color: #999 !important;
  }

  body {
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .theme-toggle,
  .skip-link,
  .sg-toggle {
    display: none !important;
  }

  main {
    padding: 0 !important;
  }

  a {
    text-decoration: underline;
  }

  /* Show the real destination after any link to another host -- useless
     for same-page jump links (#grc) or an already-visible bare URL. */
  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #333 !important;
  }

  /* Keep the things that give a case study its shape from splitting
     across a page break. */
  .glance,
  .case-card,
  .service-card,
  .score-tile,
  .page-aside,
  .steps > li,
  figure,
  table,
  .callout {
    break-inside: avoid;
  }

  /* The numeral's fill and the connecting rule are both backgrounds, which the
     reset above strips. Outline the numeral so the sequence still reads. */
  .steps > li::before {
    border: 1px solid #000;
    border-radius: 999px;
  }

  h1, h2, h3 {
    break-after: avoid;
  }

  /* Both lose their fill to the reset above, so the word needs an outline
     to still read as a label rather than stray bold text. */
  .badge,
  .verified-pill {
    border: 1px solid #000;
  }

  .table-wrap {
    overflow: visible;
  }

  /* Sticky positioning has no meaning on paper. */
  .page-aside {
    position: static !important;
    border: 1px solid #999;
  }
}
