/* ==========================================================================
   print.css — ink-friendly output, tuned for the resume (one page if content
   allows). Forces light colours regardless of the active theme.
   ========================================================================== */

@media print {
  @page {
    margin: 0.5in;
    size: letter;
  }

  :root,
  [data-theme] {
    --bg: #ffffff;
    --bg-sunk: #ffffff;
    --bg-raise: #ffffff;
    --border: #c9c9c9;
    --border-hi: #8a8a8a;
    --fg: #000000;
    --fg-dim: #1f1f1f;
    --fg-mute: #4f4f4f;
    --accent: #000000;
    --accent-2: #000000;
    --ok: #000000;
    --warn: #000000;
    --info: #000000;
    --danger: #000000;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
    line-height: 1.45;
    /* the flex column shell is a screen layout; in print it keeps the page
       box from shrinking to the @page width and pushes content off the
       right margin */
    display: block;
    width: auto;
    min-height: 0;
  }

  main { flex: none; }

  /* chrome and interactive furniture never print */
  .bar,
  .foot,
  .boot,
  .cmd,
  .skip-link,
  .resume__actions,
  .man__nav,
  .section__more,
  body::after { display: none !important; }

  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .section { border-bottom: 0; padding-block: 0; }
  .resume { padding-block: 0; }

  a { color: #000 !important; text-decoration: none; }
  /* print the destination for off-site links only */
  .prose a[href^="http"]::after,
  .resume a[href^="http"]::after,
  .man__body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #4f4f4f;
    word-break: break-all;
  }

  .resume__name { font-size: 20pt; }
  .rsection { margin-top: 14pt; }
  .rsection__h { font-size: 10pt; margin-bottom: 6pt; padding-bottom: 2pt; }
  .entry { margin-bottom: 10pt; }
  .entry__list { margin-top: 2pt; }

  .rsection,
  .entry,
  .resume__head { break-inside: avoid; }

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

  .thumb::after { display: none; }
  .thumb img { filter: none !important; }

  pre {
    border: 1px solid #c9c9c9;
    background: #fff;
    white-space: pre-wrap;
  }
}
