/* ==========================================================================
   print.css — readable dark-on-light output of the career record
   ========================================================================== */

@page {
  margin: 18mm 16mm;
}

@media print {
  :root,
  html[data-theme='latte'] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-deep: #ffffff;
    --bg-deepest: #ffffff;
    --surface: #f2f2f2;
    --surface-strong: #e6e6e6;
    --text: #1a1a1a;
    --text-strong: #000000;
    --muted: #333333;
    --faint: #555555;
    --border: #bbbbbb;
    --border-soft: #dddddd;
    --accent: #000000;
    --accent-profile: #000000;
    --accent-work: #000000;
    --accent-work-alt: #000000;
    --accent-skills: #000000;
    --accent-skills-alt: #000000;
    --accent-skills-ter: #000000;
    --accent-experience: #000000;
    --accent-current: #000000;
    --accent-contact: #000000;
    --card-accent: #000000;
  }

  html,
  body {
    background: #ffffff !important;
    color: #1a1a1a;
    font-size: 11pt;
    line-height: 1.45;
  }

  body::before,
  .site-header,
  .site-footer,
  .skip-link,
  .noscript-note,
  .controls,
  .site-nav,
  .hero__terminal,
  .hero__actions,
  .contact__links,
  .not-found__actions,
  .button {
    display: none !important;
  }

  .shell {
    width: auto;
    max-width: none;
    margin: 0;
  }

  .hero,
  .about-hero,
  .section,
  .contact {
    padding-block: 1rem;
    border-top: 1px solid #cccccc;
  }

  .hero__grid,
  .profile-grid,
  .about-hero__grid,
  .about-body,
  .work-grid,
  .skills-grid,
  .capability-grid {
    display: block;
  }

  .hero__copy,
  .hero__summary,
  .measure {
    max-width: none;
  }

  h1 {
    font-size: 20pt;
  }

  h2 {
    font-size: 15pt;
    margin-top: 0.5rem;
  }

  h3 {
    font-size: 11pt;
  }

  .work-card,
  .skill-card,
  .capability,
  .about-work__item,
  .facts {
    margin-top: 0.6rem;
    padding: 0.6rem;
    background: #ffffff;
    border: 1px solid #dddddd;
    break-inside: avoid;
  }

  .timeline::before,
  .timeline__entry::before {
    display: none;
  }

  .timeline__entry {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eeeeee;
    break-inside: avoid;
  }

  .timeline__list li {
    color: #1a1a1a;
  }

  a {
    color: #1a1a1a;
    text-decoration: none;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 8pt;
    color: #555555;
    word-break: break-all;
  }
}
