/* print.css — print stylesheet for 42talents.com (loaded with media="print").
   Modeled on the fleet print stylesheet (website-patbaumgartner-com):
   white background, black 12pt text, chrome/decoration hidden,
   no page breaks inside content blocks. */

@media print {

  /* ===== Hidden chrome: navigation, toggles, hero decoration ===== */
  .skip-link,
  .site-nav,
  .nav-toggle,
  .theme-toggle,
  .header-end,
  .hero__art,
  .cube-scene,
  .actions,
  .btn,
  .site-footer {
    display: none !important;
  }

  /* Theme-aware header logos: white paper needs the light-mode variant */
  .logo--dark {
    display: none !important;
  }

  .logo--light {
    display: block !important;
  }

  /* ===== Base: white background, black 12pt text ===== */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
    font-family: serif !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  /* Flatten surfaces (cards, tiles, alternating sections) to plain paper */
  .site-header,
  .section,
  .section--alt,
  .container,
  .card,
  .cards,
  .tile,
  .tiles,
  .hero {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: none !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #000 !important;
    background: none !important;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  p,
  ul,
  ol,
  li,
  dl,
  dt,
  dd,
  blockquote,
  pre,
  code,
  table,
  th,
  td {
    color: #000 !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* ===== Links: legible, external URLs printed ===== */
  a {
    color: #000 !important;
    text-decoration: underline !important;
    word-break: break-all;
  }

  a[href]:after {
    content: none !important;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  a[href^="#"]:after,
  a[href^="mailto:"]:after,
  a[href^="tel:"]:after {
    content: "" !important;
  }

  /* ===== Page-break control: keep sections and blocks intact ===== */
  .section,
  .card,
  .tile,
  li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1 + *,
  h2 + *,
  h3 + * {
    break-before: avoid-page;
    page-break-before: auto;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    background: none !important;
    box-shadow: none !important;
  }

  /* ===== No animation/transform artefacts on paper ===== */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    overflow: visible !important;
  }
}
