/* ==========================================================================
   Print stylesheet — targets capabilities.html (US Letter) but applies
   sitewide so any page prints cleanly (nav/footer chrome removed).
   ========================================================================== */

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

  * {
    box-shadow: none !important;
    text-shadow: none !important;
    background: transparent !important;
  }

  body {
    color: #000;
    font-size: 10.5pt;
    line-height: 1.4;
  }

  .site-header,
  .mobile-nav,
  .skip-link,
  .site-footer,
  .u-hide-print,
  .nav-toggle,
  .hero__diagram,
  [data-print-hide] {
    display: none !important;
  }

  /* Scroll-reveal (css/base.css, js/animations.js) is driven by
     IntersectionObserver against the real browser viewport, which never
     "sees" below-the-fold [data-reveal] sections during print layout — the
     printed page would otherwise go blank after the first screen's worth of
     content. Force it fully visible here rather than requiring every
     printable page to avoid data-reveal (as capabilities.html previously
     did by omission). */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href^='http']::after,
  a[href^='mailto']::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: #333;
  }

  .capstate {
    padding: 0;
  }

  .capstate__header {
    padding-block-end: 0.5rem;
    margin-block-end: 0.75rem;
  }

  .capstate__section {
    margin-block-end: 0.6rem;
  }

  .capstate__section h2 {
    margin-block-end: 0.25rem;
    padding-block-end: 0.1rem;
  }

  .capstate__section,
  .panel,
  .price-panel {
    break-inside: avoid;
    border-color: #000 !important;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
    color: #000 !important;
  }

  p {
    margin-block-start: 0 !important;
  }

  .container {
    max-width: 100%;
    padding-inline: 0;
  }

  /* ---- experience.html: dark hero band + decorative stat-rail ---------------
     Everything else on the page is already a light surface. The hero's own
     text stays visible (forced to black); its stat-rail is decorative
     (aria-hidden) and marked [data-print-hide] in the page markup. */
  .hero.on-dark,
  .hero.on-dark .kicker,
  .hero.on-dark .hero__lede {
    color: #000 !important;
  }

  .timeline {
    border-color: #000 !important;
  }

  .timeline__item::before {
    background-color: #000 !important;
  }

  .timeline__dates {
    color: #000 !important;
  }
}
